:root {
    --primary-color: #4F46E5;
    --secondary-color: #7C3AED;
    --accent-color: #EC4899;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Editor Styles */
.edit-mode .component-wrapper:hover {
    outline: 3px dashed var(--primary-color);
    outline-offset: 5px;
    cursor: pointer;
    position: relative;
}

.component-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.component-controls {
    display: none;
    position: absolute;
    top: -50px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.edit-mode .component-wrapper:hover .component-controls {
    display: flex;
    gap: 5px;
}

.component-controls .btn {
    padding: 5px 10px;
    font-size: 12px;
}

/* Editor Sidebar */
#editorSidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

#editorSidebar.active {
    right: 0;
}

.editor-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.component-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.component-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Header Slider */
.header-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.header-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.header-slide.active {
    opacity: 1;
}

.header-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

/* Member Cards */
.member-card {
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Container */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Agenda Event Card */
.event-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Sponsor Logos */
.sponsor-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.sponsor-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Repertoire List */
.repertoire-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.repertoire-item:hover {
    border-left-color: var(--accent-color);
    padding-left: 30px;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Edit Mode Indicator */
.edit-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 9998;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.edit-mode .edit-indicator {
    display: block;
}

/* Responsive Menu */
@media (max-width: 991px) {
    .header-slider {
        height: 400px;
    }

    #editorSidebar {
        width: 100%;
        right: -100%;
    }

    .member-photo {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .header-slider {
        height: 300px;
    }

    .header-content h1 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

.loading.active {
    display: block;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Floating Lock Button - Always Visible */
.floating-lock-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.floating-lock-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.6);
}

.floating-lock-button:active {
    transform: scale(0.95);
}

body.edit-mode .floating-lock-button {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

body.edit-mode .floating-lock-button i:before {
    content: "\f09c"; /* fa-unlock icon */
}

/* Pulse animation for lock button */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(79, 70, 229, 0.8);
    }
}

.floating-lock-button {
    animation: pulse 2s infinite;
}

/* Hide pulse animation when in edit mode */
body.edit-mode .floating-lock-button {
    animation: none;
}

/* Edit Mode Indicator */
.edit-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #4F46E5;
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 9999;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

body.edit-mode .edit-indicator {
    display: block;
}

body.edit-mode {
    padding-top: 50px;
}

/* ==========================================
   v2.0 FEATURES STYLING
   ========================================== */

/* CSS Variables for theme system */
:root {
    --primary-color: #4F46E5;
    --secondary-color: #7C3AED;
    --accent-color: #EC4899;
}

/* Apply theme colors to buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Color picker styling */
.form-control-color {
    width: 50px;
    height: 38px;
}

/* Logo upload zone */
#logoUploadZone {
    transition: all 0.3s ease;
}

#logoUploadZone:hover {
    background: #e3f2fd !important;
    border-color: var(--primary-color) !important;
}

/* Click-to-edit visual feedback */
.component-wrapper {
    transition: outline 0.2s ease;
}

/* v2.0 badge */
.editor-sidebar::after {
    content: ' v2.0';
    position: absolute;
    top: 20px;
    right: 60px;
    font-size: 10px;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

