/* Apple Design Dashboard - Kampus Professional Theme */
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;500;600;700&family=SF+Mono:wght@400;500&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Disable all animations */
* {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Disable specific animations */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
}

@keyframes shimmer {
    0%, 100% { transform: translateX(0); }
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dashboard Header - Professional Style */
.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0 32px;
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.35);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
}

.menu-toggle {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    color: #2c3e50;
    cursor: pointer;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(46, 125, 50, 0.12);
    transform: scale(1.05);
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    padding: 14px 22px;
    gap: 14px;
    min-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.95);
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
    transform: scale(1.02);
}

.search-bar svg {
    color: #7f8c8d;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    color: #2c3e50;
    font-family: inherit;
}

.search-bar input::placeholder {
    color: #95a5a6;
}

/* Search Results */
.search-bar {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(46, 125, 50, 0.08);
}

/* Priority-based styling */
.search-result-item.high-priority {
    border-left: 3px solid #2E7D32;
}

.search-result-item.medium-priority {
    border-left: 3px solid #FF9800;
}

.search-result-item.low-priority {
    border-left: 3px solid #9E9E9E;
}

.search-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 8px;
    margin-right: 16px;
    color: #2E7D32;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
}

.search-result-title mark {
    background: rgba(46, 125, 50, 0.2);
    color: #2E7D32;
    padding: 1px 2px;
    border-radius: 3px;
    font-weight: 700;
}

.search-result-description {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.3;
}

.search-no-results {
    padding: 24px 20px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn, .more-btn {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    color: #2c3e50;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
}

.theme-toggle-btn:hover, .more-btn:hover {
    background: rgba(46, 125, 50, 0.12);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
}

.theme-toggle-btn .light-icon,
.theme-toggle-btn .dark-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 20px;
    height: 20px;
}

.theme-toggle-btn .dark-icon {
    opacity: 0;
}

/* Dark Mode Styles */
body.dark-mode {
    background: #1a1a1a;
    color: #ffffff;
}

body.dark-mode .dashboard-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .dashboard-sidebar {
    background: rgba(26, 26, 26, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-item {
    color: #e0e0e0;
}

body.dark-mode .nav-item:hover {
    background: rgba(46, 125, 50, 0.2);
    color: #4caf50;
}

body.dark-mode .nav-item.active {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
}

body.dark-mode .config-card,
body.dark-mode .preview-card {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .activity-item,
body.dark-mode .featured-content-item {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-menu {
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-item {
    color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover {
    background: rgba(46, 125, 50, 0.2);
    color: #4caf50;
}

body.dark-mode .dropdown-divider {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle-btn,
body.dark-mode .more-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .theme-toggle-btn:hover,
body.dark-mode .more-btn:hover {
    background: rgba(46, 125, 50, 0.2);
}

/* Dark mode for cards and widgets */
body.dark-mode .welcome-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #404040;
}

body.dark-mode .weather-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .kpi-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .kpi-card .kpi-label {
    color: #b0b0b0;
}

body.dark-mode .kpi-card .kpi-value {
    color: #ffffff;
}

body.dark-mode .kpi-card .kpi-trend {
    color: #b0b0b0;
}

body.dark-mode .kpi-card .kpi-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
}

body.dark-mode .search-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .search-bar input {
    color: #e0e0e0;
}

body.dark-mode .search-bar input::placeholder {
    color: #b0b0b0;
}

body.dark-mode .search-bar svg {
    color: #b0b0b0;
}

/* Dark mode search results */
body.dark-mode .search-results {
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid #404040;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .search-result-item {
    border-bottom: 1px solid #404040;
}

body.dark-mode .search-result-item:hover,
body.dark-mode .search-result-item.selected {
    background: rgba(46, 125, 50, 0.15);
}

body.dark-mode .search-result-icon {
    background: rgba(46, 125, 50, 0.2);
    color: #4CAF50;
}

body.dark-mode .search-result-title {
    color: #e0e0e0;
}

body.dark-mode .search-result-title mark {
    background: rgba(46, 125, 50, 0.3);
    color: #4CAF50;
}

body.dark-mode .search-result-description {
    color: #b0b0b0;
}

body.dark-mode .search-no-results {
    color: #b0b0b0;
}

/* Dark mode profile preview */
body.dark-mode .profile-preview-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode .profile-preview-content::before {
    background: linear-gradient(90deg, #4CAF50, #66BB6A, #81C784);
}

body.dark-mode .profile-preview-card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode .profile-avatar-preview {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

body.dark-mode .profile-avatar-preview::after {
    background: linear-gradient(135deg, #4CAF50, #66BB6A, #81C784);
}

body.dark-mode .profile-name-preview {
    color: #e0e0e0;
}

body.dark-mode .profile-role-preview {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

body.dark-mode .profile-contact-item {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
}

body.dark-mode .profile-contact-item:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

body.dark-mode .profile-contact-item svg {
    color: #4CAF50;
}

/* Profile Statistics Section */
.profile-stats-section {
    margin-top: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.stat-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 12px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2E7D32, #4CAF50);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
}

.status-badge.active {
    background: rgba(33, 150, 243, 0.1);
    color: #1976D2;
}

/* Team Avatars */
.team-avatars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.team-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.team-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.team-avatar-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.team-avatar-more:hover {
    background: #dee2e6;
    transform: scale(1.1);
}

/* Dark mode profile statistics */
body.dark-mode .stat-card {
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .stat-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .stat-icon {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

body.dark-mode .stat-content h4 {
    color: #e0e0e0;
}

body.dark-mode .stat-content p {
    color: #b0b0b0;
}

body.dark-mode .progress-bar {
    background: #404040;
}

body.dark-mode .progress-fill {
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

body.dark-mode .status-badge.online {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

body.dark-mode .status-badge.active {
    background: rgba(33, 150, 243, 0.2);
    color: #64B5F6;
}

/* Dark mode team avatars */
body.dark-mode .team-avatar {
    border: 2px solid #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .team-avatar:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .team-avatar-more {
    background: #404040;
    color: #b0b0b0;
    border: 2px solid #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .team-avatar-more:hover {
    background: #4a4a4a;
}

/* Dark mode priority styling */
body.dark-mode .search-result-item.high-priority {
    border-left: 3px solid #4CAF50;
}

body.dark-mode .search-result-item.medium-priority {
    border-left: 3px solid #FFB74D;
}

body.dark-mode .search-result-item.low-priority {
    border-left: 3px solid #757575;
}

body.dark-mode .dropdown-menu {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #404040;
    backdrop-filter: blur(20px);
}

body.dark-mode .dropdown-item {
    color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover {
    background: rgba(46, 125, 50, 0.2);
}

body.dark-mode .dropdown-divider {
    border-color: #404040;
}

body.dark-mode .nav-item {
    color: #b0b0b0;
}

body.dark-mode .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .nav-item.active {
    background: #2E7D32;
    color: #ffffff;
}

body.dark-mode .nav-item svg {
    color: inherit;
}

body.dark-mode .logo-text h1 {
    color: #ffffff;
}

body.dark-mode .profile-pic img {
    border: 2px solid #404040;
}

/* Dark mode for Timer Tab */
body.dark-mode .timer-main {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .timer-header {
    color: #ffffff;
}

body.dark-mode .timer-header .header-text h2 {
    color: #ffffff;
}

body.dark-mode .timer-header .header-text p {
    color: #b0b0b0;
}

body.dark-mode .countdown-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .countdown-display .countdown-title h3 {
    color: #ffffff;
}

body.dark-mode .countdown-display .timer-status {
    color: #b0b0b0;
}

body.dark-mode .countdown-display .countdown-value {
    color: #2E7D32;
}

body.dark-mode .countdown-display .countdown-label {
    color: #b0b0b0;
}

body.dark-mode .countdown-display .target-info {
    color: #e0e0e0;
}

body.dark-mode .config-card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .config-card:hover {
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .config-card .card-header {
    border-bottom-color: rgba(46, 125, 50, 0.2);
}

body.dark-mode .config-card .card-header h3 {
    color: #ffffff;
}

body.dark-mode .config-card .form-group label {
    color: #b0b0b0;
}

body.dark-mode .config-card .card-header {
    border-bottom-color: rgba(46, 125, 50, 0.2);
}

body.dark-mode .config-card .card-header p {
    color: #b0b0b0;
}

body.dark-mode .config-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .config-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(76, 175, 80, 0.2);
}

body.dark-mode .section-icon {
    background: rgba(46, 125, 50, 0.15);
    color: #4CAF50;
}

body.dark-mode .section-title h4 {
    color: #ffffff;
}

body.dark-mode .section-description {
    color: #b0b0b0;
}

body.dark-mode .config-item-label label {
    color: #e0e0e0;
}

body.dark-mode .config-item-label label svg {
    color: #4CAF50;
}

body.dark-mode .config-item-hint {
    color: #b0b0b0;
}

body.dark-mode .config-item-control input[type="date"],
body.dark-mode .config-item-control input[type="time"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
}

body.dark-mode .config-item-control input[type="date"]:focus,
body.dark-mode .config-item-control input[type="time"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .config-item-control input[type="date"]:hover,
body.dark-mode .config-item-control input[type="time"]:hover {
    border-color: rgba(76, 175, 80, 0.4);
}

body.dark-mode .config-card .form-group input,
body.dark-mode .config-card .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .config-card .form-group input::placeholder,
body.dark-mode .config-card .form-group textarea::placeholder {
    color: #b0b0b0;
}

body.dark-mode .history-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .history-card .card-header h3 {
    color: #ffffff;
}

body.dark-mode .history-card .history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .history-card .history-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .timer-toggle {
    background: transparent;
    border: none;
    color: #e0e0e0;
    backdrop-filter: blur(10px);
}

body.dark-mode .timer-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border: none;
}

body.dark-mode .timer-toggle.active {
    background: transparent;
    color: #4CAF50;
    border: none;
}

body.dark-mode .timer-toggle.active:hover {
    background: rgba(46, 125, 50, 0.1);
    border: none;
}

body.dark-mode .toggle-switch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
}

body.dark-mode .toggle-switch input:checked + .toggle-slider {
    background: #4CAF50;
    border-color: #4CAF50;
}

body.dark-mode .toggle-switch input:checked + .toggle-slider:before {
    background: #ffffff;
    transform: translateX(20px);
}

body.dark-mode .toggle-switch .toggle-slider {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #404040;
}

body.dark-mode .toggle-switch .toggle-slider:before {
    background: #e0e0e0;
}

body.dark-mode .toggle-label {
    color: #e0e0e0;
    font-weight: 500;
}

body.dark-mode .btn-publish {
    background: #2E7D32;
    color: #ffffff;
    border: 1px solid #2E7D32;
}

body.dark-mode .btn-publish:hover {
    background: #1b5e20;
    border-color: #1b5e20;
}

body.dark-mode .btn-publish:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    border-color: #404040;
}

body.dark-mode .search-bar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .search-bar input {
    color: #e0e0e0;
}

body.dark-mode .search-bar input::placeholder {
    color: #a0a0a0;
}

body.dark-mode .logo-text h1 {
    color: #ffffff;
}

body.dark-mode .form-group label {
    color: #a0a0a0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #4caf50;
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
}

body.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .homepage-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(30px);
}

body.dark-mode .card-header h3 {
    color: #ffffff;
}

body.dark-mode .form-section h4 {
    color: #ffffff;
}

body.dark-mode .preview-header h3 {
    color: #ffffff;
}

body.dark-mode .preview-header p {
    color: #a0a0a0;
}

body.dark-mode .preview-label {
    color: #a0a0a0;
}

/* Dark mode for Homepage Tab */
body.dark-mode .homepage-main {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .homepage-header {
    color: #ffffff;
}

body.dark-mode .homepage-header .header-text h2 {
    color: #ffffff;
}

body.dark-mode .homepage-header .header-text p {
    color: #b0b0b0;
}

body.dark-mode .homepage-settings {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .homepage-settings h2 {
    color: #ffffff;
}

body.dark-mode .hero-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .hero-section .card-header h3 {
    color: #ffffff;
}

body.dark-mode .hero-section .form-group label {
    color: #b0b0b0;
}

body.dark-mode .hero-section .form-group input,
body.dark-mode .hero-section .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .hero-section .form-group input::placeholder,
body.dark-mode .hero-section .form-group textarea::placeholder {
    color: #b0b0b0;
}

body.dark-mode .navigation-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .navigation-section .card-header h3 {
    color: #ffffff;
}

body.dark-mode .nav-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #505050;
}

body.dark-mode .nav-button.active {
    background: rgba(46, 125, 50, 0.2);
    border-color: #4CAF50;
    color: #4CAF50;
}

body.dark-mode .nav-button.active:hover {
    background: rgba(46, 125, 50, 0.3);
    border-color: #66BB6A;
}

body.dark-mode .nav-button .card-header h4 {
    color: #ffffff;
}

body.dark-mode .nav-button .form-group label {
    color: #b0b0b0;
}

body.dark-mode .nav-button .form-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .nav-button .form-group input::placeholder {
    color: #b0b0b0;
}

body.dark-mode .preview-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .preview-section .card-header h3 {
    color: #ffffff;
}

body.dark-mode .preview-section .card-header p {
    color: #b0b0b0;
}

body.dark-mode .preview-frame {
    background: #ffffff;
    border: 1px solid #404040;
}

body.dark-mode .btn-preview,
body.dark-mode .btn-publish {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .btn-preview:hover,
body.dark-mode .btn-publish:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #505050;
}

body.dark-mode .btn-refresh,
body.dark-mode .btn-fullscreen {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
    color: #b0b0b0;
}

body.dark-mode .btn-refresh:hover,
body.dark-mode .btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
}

/* Dark mode for button controls */
body.dark-mode .button-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .button-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #505050;
}

body.dark-mode .button-header h5 {
    color: #ffffff;
}

body.dark-mode .button-text {
    color: #e0e0e0;
}

body.dark-mode .button-link {
    color: #b0b0b0;
}

body.dark-mode .button-item .toggle-switch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
}

body.dark-mode .button-item .toggle-switch input:checked + .toggle-slider {
    background: #4CAF50;
    border-color: #4CAF50;
}

body.dark-mode .button-item .toggle-switch input:checked + .toggle-slider:before {
    background: #ffffff;
    transform: translateX(20px);
}

body.dark-mode .button-item .toggle-switch .toggle-slider {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #404040;
}

body.dark-mode .button-item .toggle-switch .toggle-slider:before {
    background: #e0e0e0;
}

body.dark-mode .preview-toolbar {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid #404040;
}

body.dark-mode .preview-controls {
    color: #e0e0e0;
}

body.dark-mode .preview-actions {
    background: transparent;
}

body.dark-mode .config-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .config-card .card-header h3 {
    color: #ffffff;
}

body.dark-mode .form-section h4 {
    color: #ffffff;
}

body.dark-mode .buttons-container {
    background: transparent;
}

body.dark-mode .button-title-group h5 {
    color: #ffffff;
}

body.dark-mode .button-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #b0b0b0;
}

body.dark-mode .button-description {
    color: #b0b0b0;
}

body.dark-mode .button-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .button-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.2);
}

body.dark-mode .config-item-control input[type="text"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
}

body.dark-mode .config-item-control input[type="text"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .config-item-control input[type="text"]:hover {
    border-color: rgba(76, 175, 80, 0.4);
}

body.dark-mode .config-item-control input[type="text"]::placeholder {
    color: #86868b;
}

/* Dark mode for Desktop Preview */
body.dark-mode .homepage-overview {
    background: transparent;
}

body.dark-mode .preview-label {
    color: #b0b0b0;
    font-weight: 500;
}

body.dark-mode .preview-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #404040 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .preview-card .preview-header h3 {
    color: #ffffff !important;
}

body.dark-mode .preview-card .preview-header p {
    color: #b0b0b0 !important;
}

body.dark-mode .preview-frame {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #404040;
}

body.dark-mode .preview-content {
    background: transparent;
}

body.dark-mode .preview-content iframe {
    background: #ffffff;
    border-radius: 8px;
    margin: 8px;
}

body.dark-mode .preview-toolbar {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid #404040 !important;
}

body.dark-mode .preview-controls {
    color: #e0e0e0 !important;
}

body.dark-mode .preview-actions {
    background: transparent;
}

/* Dark mode for Thema Tab */
body.dark-mode .thema-main {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .thema-main .homepage-header {
    color: #ffffff;
}

body.dark-mode .thema-main .homepage-header .header-text h2 {
    color: #ffffff;
}

body.dark-mode .thema-main .homepage-header .header-text p {
    color: #b0b0b0;
}

body.dark-mode .cards-container {
    background: transparent;
}

body.dark-mode .card-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #404040 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .card-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #505050 !important;
}

body.dark-mode .card-item .card-header h5 {
    color: #ffffff !important;
}

body.dark-mode .card-item .form-group label {
    color: #b0b0b0 !important;
}

body.dark-mode .card-item .form-group input,
body.dark-mode .card-item .form-group textarea,
body.dark-mode .card-item .form-group select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #404040 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .card-item .form-group input::placeholder,
body.dark-mode .card-item .form-group textarea::placeholder {
    color: #b0b0b0 !important;
}

body.dark-mode .card-item .toggle-switch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
}

body.dark-mode .card-item .toggle-switch input:checked + .toggle-slider {
    background: #4CAF50;
    border-color: #4CAF50;
}

body.dark-mode .card-item .toggle-switch input:checked + .toggle-slider:before {
    background: #ffffff;
    transform: translateX(20px);
}

body.dark-mode .card-item .toggle-switch .toggle-slider {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #404040;
}

body.dark-mode .card-item .toggle-switch .toggle-slider:before {
    background: #e0e0e0;
}

body.dark-mode .wide-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #404040 !important;
}

body.dark-mode .poster-container {
    background: transparent;
}

body.dark-mode .poster-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #404040 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .poster-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #505050 !important;
}

body.dark-mode .poster-item .poster-header h5 {
    color: #ffffff !important;
}

body.dark-mode .poster-item .form-group label {
    color: #b0b0b0 !important;
}

body.dark-mode .poster-item .form-group input,
body.dark-mode .poster-item .form-group textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid #404040 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .poster-item .form-group input::placeholder,
body.dark-mode .poster-item .form-group textarea::placeholder {
    color: #b0b0b0 !important;
}

body.dark-mode .poster-item .toggle-switch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #404040;
}

body.dark-mode .poster-item .toggle-switch input:checked + .toggle-slider {
    background: #4CAF50;
    border-color: #4CAF50;
}

body.dark-mode .poster-item .toggle-switch input:checked + .toggle-slider:before {
    background: #ffffff;
    transform: translateX(20px);
}

body.dark-mode .poster-item .toggle-switch .toggle-slider {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #404040;
}

body.dark-mode .poster-item .toggle-switch .toggle-slider:before {
    background: #e0e0e0;
}

body.dark-mode .btn-preview,
body.dark-mode .btn-publish {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-preview:hover,
body.dark-mode .btn-publish:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-refresh,
body.dark-mode .btn-fullscreen {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .btn-refresh:hover,
body.dark-mode .btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu Styles */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}


.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(46, 125, 50, 0.08);
    color: #2E7D32;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-item svg {
    color: inherit;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 4px 0;
}

.profile-pic img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(46, 125, 50, 0.15);
    transition: all 0.3s ease;
}

.profile-pic img:hover {
    border-color: #2E7D32;
    transform: scale(1.05);
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    overflow-x: hidden;
}

/* Sidebar - Professional Style */
.dashboard-sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 32px 0;
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 14px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 15px;
}

.nav-item:hover {
    background: rgba(46, 125, 50, 0.12);
    color: #2E7D32;
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
    transform: translateX(4px);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-item span {
    flex: 1;
    font-weight: 500;
}

.nav-arrow {
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-arrow {
    transform: rotate(90deg);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 300px;
    padding: 48px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
    position: relative;
}

.dashboard-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(46, 125, 50, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(25, 118, 210, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-main > * {
    position: relative;
    z-index: 1;
}

/* Top Section */
.top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 32px;
    width: 100%;
    max-width: 100%;
}

/* Welcome Banner - Professional Style */
.welcome-banner {
    flex: 1;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 50%, #43A047 100%);
    border-radius: 28px;
    padding: 56px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    max-width: 100%;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.welcome-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 0;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
}

.welcome-illustration {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 260px;
    height: 200px;
    opacity: 0.2;
}

.hiking-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.person {
    position: absolute;
    width: 24px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
}

.person-1 { bottom: 24px; right: 48px; }
.person-2 { bottom: 36px; right: 72px; }
.person-3 { bottom: 18px; right: 96px; }
.person-4 { bottom: 30px; right: 120px; }

.tree {
    position: absolute;
    width: 18px;
    height: 48px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.tree-1 { bottom: 12px; right: 24px; }
.tree-2 { bottom: 6px; right: 144px; }
.tree-3 { bottom: 18px; right: 168px; }

.weather-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.weather-overlay:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.weather-icon {
    margin-bottom: 12px;
}

.temperature {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.location {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 500;
}

/* KPI Grid - Professional Style */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    max-width: 100%;
    box-sizing: border-box;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--card-color) 0%, var(--card-color-secondary) 100%);
}

.kpi-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
    border-color: rgba(0, 0, 0, 0.08);
}

.kpi-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kpi-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.kpi-card:hover .kpi-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.kpi-card:hover .kpi-icon::before {
    left: 100%;
}

.kpi-green {
    --card-color: #2E7D32;
    --card-color-secondary: #388E3C;
}

.kpi-green .kpi-icon {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
}

.kpi-blue {
    --card-color: #1976D2;
    --card-color-secondary: #2196F3;
}

.kpi-blue .kpi-icon {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
}

.kpi-purple {
    --card-color: #7B1FA2;
    --card-color-secondary: #9C27B0;
}

.kpi-purple .kpi-icon {
    background: linear-gradient(135deg, #7B1FA2 0%, #9C27B0 100%);
}

.kpi-orange {
    --card-color: #F57C00;
    --card-color-secondary: #FF9800;
}

.kpi-orange .kpi-icon {
    background: linear-gradient(135deg, #F57C00 0%, #FF9800 100%);
}

.kpi-teal {
    --card-color: #00838F;
    --card-color-secondary: #00ACC1;
}

.kpi-teal .kpi-icon {
    background: linear-gradient(135deg, #00838F 0%, #00ACC1 100%);
}

.kpi-indigo {
    --card-color: #3949AB;
    --card-color-secondary: #3F51B5;
}

.kpi-indigo .kpi-icon {
    background: linear-gradient(135deg, #3949AB 0%, #3F51B5 100%);
}

.kpi-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.kpi-content h3 {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.kpi-change {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-change.positive {
    color: #27ae60;
}

.kpi-change.positive::before {
    content: '↗';
    font-size: 16px;
}

.kpi-change.negative {
    color: #e74c3c;
}

.kpi-change.negative::before {
    content: '↘';
    font-size: 16px;
}

/* Quick Actions Section - Professional Style */
.quick-actions-section {
    margin-bottom: 48px;
    width: 100%;
    max-width: 100%;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2E7D32 0%, #388E3C 100%);
    transition: all 0.4s ease;
}

.quick-action-card:hover::before {
    width: 6px;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-action-card:hover .action-icon {
    background: rgba(46, 125, 50, 0.15);
    transform: scale(1.1);
}

.action-content {
    flex: 1;
    min-width: 0;
}

.action-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.action-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.action-arrow {
    color: #95a5a6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-action-card:hover .action-arrow {
    color: #2E7D32;
    transform: translateX(4px);
}

/* Real-time Activity Section - Professional Style */
.activity-section {
    margin-bottom: 48px;
    width: 100%;
    max-width: 100%;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.activity-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.02em;
}

.activity-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.activity-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
    padding: 8px 16px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #27ae60;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.refresh-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
}

.refresh-btn:hover {
    background: rgba(46, 125, 50, 0.12);
    border-color: rgba(46, 125, 50, 0.2);
    transform: scale(1.05);
}

.refresh-btn:active {
    transform: scale(0.95);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.activity-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2E7D32 0%, #388E3C 100%);
    transition: all 0.4s ease;
}

.activity-card:hover::before {
    width: 6px;
}

.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.activity-card:hover .activity-icon {
    background: rgba(46, 125, 50, 0.15);
    transform: scale(1.1);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.4;
}

.activity-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
    line-height: 1.5;
}

.activity-time {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

.activity-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.activity-badge.new {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.activity-badge.page {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.activity-badge.system {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.activity-badge.timer {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.activity-badge.contact {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.activity-badge.backup {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

/* Responsive Activity Grid */
@media (max-width: 1200px) {
    .activity-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 18px;
    }
    
    .activity-card {
        padding: 20px;
        gap: 14px;
    }
    
    .activity-icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .activity-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .activity-card {
        padding: 18px;
        gap: 12px;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
    }
    
    .activity-title {
        font-size: 15px;
    }
    
    .activity-desc {
        font-size: 13px;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .activity-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Enhanced Bottom Section - Professional Style */
.bottom-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    max-width: 100%;
}

/* Performance Metrics */
.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
}

.metric-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #2E7D32 0%, #388E3C 100%);
    border-radius: 4px;
    transition: all 0.6s ease;
    position: relative;
}

.metric-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 40px;
    text-align: right;
}

/* System Section */
.system-section {
    width: 100%;
    max-width: 100%;
}

.system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 100%;
}

.system-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.system-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.system-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.system-card .card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.02em;
}

.health-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
}

/* Health Metrics */
.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.health-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.health-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    flex-shrink: 0;
}

.health-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.health-label {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.health-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.notification-icon.info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.notification-icon.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 6px;
    line-height: 1.5;
}

.notification-time {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

/* Timer Page Styles */
.timer-main {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    background: transparent;
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
}

.timer-header {
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-text {
    flex: 1;
}

.timer-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.timer-header p {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    justify-content: center;
}

.btn-publish {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
}

/* Timer Overview */
.timer-overview {
    margin-bottom: 48px;
}

.countdown-display {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.countdown-title {
    margin-bottom: 40px;
}

.countdown-title h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.timer-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #27ae60;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 48px;
    font-weight: 700;
    color: #2E7D32;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'SF Mono', monospace;
}

.countdown-label {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.target-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.target-date, .target-time {
    font-size: 18px;
    font-weight: 600;
    color: #2E7D32;
}

/* Timer Toggle Section */
.timer-toggle-section {
    margin-bottom: 32px;
}

.toggle-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.toggle-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

/* Timer Configuration */
.timer-config-section,
.homepage-config-section {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
    width: 100%;
}

.config-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    transition: all 0.3s ease;
}

.config-card:hover {
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.config-card .card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid rgba(46, 125, 50, 0.1);
}

.config-card .header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.config-card .header-text {
    flex: 1;
}

.config-card .card-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.config-card .card-header p {
    font-size: 14px;
    color: #86868b;
    margin: 0;
    font-weight: 400;
}

/* Configuration Sections */
.config-section {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.config-section:hover {
    background: rgba(248, 249, 250, 0.7);
    border-color: rgba(46, 125, 50, 0.15);
}

.config-section:last-of-type {
    margin-bottom: 0;
}

.config-section.config-actions {
    background: transparent;
    padding: 0;
    border: none;
}

.config-section.config-actions:hover {
    background: transparent;
    border-color: transparent;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}

.section-header .toggle-switch {
    margin-left: auto;
    flex-shrink: 0;
    margin-top: 2px;
}

.section-content.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.3);
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(56, 142, 60, 0.1) 100%);
    border-radius: 10px;
    color: #2E7D32;
    flex-shrink: 0;
}

.section-title {
    flex: 1;
}

.section-title h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.section-description {
    font-size: 13px;
    color: #86868b;
    font-weight: 400;
}

.section-content {
    margin-top: 8px;
}

/* Configuration Items */
.config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-item-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-item-label label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.01em;
}

.config-item-label label svg {
    color: #2E7D32;
}

.config-item-hint {
    font-size: 12px;
    color: #86868b;
    font-weight: 400;
    line-height: 1.4;
}

.config-item-control {
    display: flex;
    align-items: center;
}

.config-item-control input[type="date"],
.config-item-control input[type="time"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.config-item-control input[type="date"]:focus,
.config-item-control input[type="time"]:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.config-item-control input[type="date"]:hover,
.config-item-control input[type="time"]:hover {
    border-color: rgba(46, 125, 50, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.config-item-control input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.config-item-control input[type="text"]:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.config-item-control input[type="text"]:hover {
    border-color: rgba(46, 125, 50, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.config-item-control input[type="text"]::placeholder {
    color: #c7c7cc;
    font-weight: 400;
}

/* Thema Description Textarea Styling */
.config-item-control textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    font-size: 15px;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.config-item-control textarea:focus {
    outline: none;
    border-color: #2E7D32;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.12), 0 0 0 3px rgba(46, 125, 50, 0.08);
    transform: translateY(-1px);
}

.config-item-control textarea:hover {
    border-color: rgba(46, 125, 50, 0.15);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.config-item-control textarea::placeholder {
    color: #86868b;
    font-weight: 400;
    opacity: 0.7;
}

/* Dark mode textarea styling */
body.dark-mode .config-item-control textarea {
    background: rgba(28, 28, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .config-item-control textarea:focus {
    border-color: #2E7D32;
    background: rgba(28, 28, 30, 0.8);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.2), 0 0 0 3px rgba(46, 125, 50, 0.15);
}

body.dark-mode .config-item-control textarea:hover {
    border-color: rgba(46, 125, 50, 0.3);
    background: rgba(28, 28, 30, 0.7);
}

body.dark-mode .config-item-control textarea::placeholder {
    color: #86868b;
    opacity: 0.6;
}

/* Timer Toggle Styles */
.timer-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 31px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-switch:hover .toggle-slider {
    background-color: rgba(0, 0, 0, 0.16);
}

.toggle-switch:hover .toggle-slider:before {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #2E7D32;
    border-color: rgba(46, 125, 50, 0.3);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-switch input:checked:hover + .toggle-slider {
    background-color: #388E3C;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.06);
}

.toggle-switch input:disabled + .toggle-slider:before {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timer-form {
    margin-top: 0;
}


.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    font-size: 16px;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #1d1d1f;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    justify-content: flex-end;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.form-actions .btn-primary svg,
.form-actions .btn-secondary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary, .btn-secondary, .btn-action {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #2c3e50;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Timer Actions */
.timer-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
}

.action-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

.btn-action {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(46, 125, 50, 0.2);
    padding: 10px 20px;
    font-size: 14px;
}

.btn-action:hover {
    background: rgba(46, 125, 50, 0.15);
    transform: translateY(-2px);
}

.history-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.history-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 120px; /* Height for approximately 2 items */
    overflow-y: auto;
    padding-right: 8px;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.3);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 125, 50, 0.5);
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    flex-shrink: 0;
}

.history-content {
    flex: 1;
}

.history-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.history-desc {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
}

.history-time {
    font-size: 12px;
    color: #95a5a6;
    font-weight: 500;
}

/* Homepage Page Styles */
.homepage-main {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    background: transparent;
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
}

/* Thema Page Styles */
.thema-main {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    background: transparent;
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
}

/* Goede Doel Page Styles */
.goede-doel-main {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    background: transparent;
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
}

/* Programma Page Styles */
.programma-main {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    background: transparent;
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
}

/* Over Kampus Page Styles */
.over-kampus-main {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    background: transparent;
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
}

/* Contact Page Styles */
.contact-main {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    background: transparent;
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
}

/* Profile Page Styles */
.profile-main {
    flex: 1;
    margin-left: 300px;
    padding: 40px;
    background: transparent;
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
}

.profile-preview-content {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-preview-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2E7D32, #4CAF50, #66BB6A);
}

.profile-preview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.profile-avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.9);
    position: relative;
}

.profile-avatar-preview::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2E7D32, #4CAF50, #66BB6A);
    border-radius: 50%;
    z-index: -1;
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-name-preview {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.profile-role-preview {
    font-size: 12px;
    color: #2E7D32;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    background: rgba(46, 125, 50, 0.1);
    padding: 5px 14px;
    border-radius: 16px;
    display: inline-block;
}

.profile-contact-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.profile-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #5a6c7d;
    background: rgba(248, 249, 250, 0.8);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.profile-contact-item:hover {
    background: rgba(46, 125, 50, 0.05);
    border-color: rgba(46, 125, 50, 0.2);
    transform: translateY(-1px);
}

.profile-contact-item svg {
    width: 16px;
    height: 16px;
    color: #2E7D32;
    flex-shrink: 0;
}

/* Settings Page Styles */
.settings-main {
    flex: 1;
    margin-left: 300px;
    padding: 48px;
    background: transparent;
    overflow-x: hidden;
    max-width: calc(100vw - 300px);
}

/* User Management Styles */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.user-tab.active {
    background: white !important;
    color: #2E7D32 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.card-header .btn-primary {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    min-width: auto;
    width: auto;
    height: auto;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 20px;
}

.user-details h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.user-details p {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #7f8c8d;
}

.user-role {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-role.admin {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
}

.user-role.editor {
    background: rgba(33, 150, 243, 0.1);
    color: #1976D2;
}

.user-role.viewer {
    background: rgba(158, 158, 158, 0.1);
    color: #616161;
}

.user-actions {
    display: flex;
    gap: 12px;
}

.btn-edit-user, .btn-delete-user {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-user {
    background: rgba(33, 150, 243, 0.1);
    color: #1976D2;
}

.btn-edit-user:hover {
    background: rgba(33, 150, 243, 0.2);
}

.btn-delete-user {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.btn-delete-user:hover {
    background: rgba(244, 67, 54, 0.2);
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.permission-group {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.permission-group h5 {
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.permission-item:last-child {
    margin-bottom: 0;
}

.permission-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2E7D32;
}

.permission-item label {
    font-size: 15px;
    color: #5a6c7d;
    cursor: pointer;
}

/* Dark mode for management interface */
body.dark-mode .user-item {
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .user-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .user-details h4 {
    color: #e0e0e0;
}

body.dark-mode .user-details p {
    color: #b0b0b0;
}

body.dark-mode .permission-group {
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .permission-group h5 {
    color: #e0e0e0;
}

body.dark-mode .permission-item label {
    color: #b0b0b0;
}

.settings-section {
    margin-bottom: 40px;
}


.form-section {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.settings-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.settings-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.settings-toggle-group:last-child {
    border-bottom: none;
}

.settings-toggle-label {
    display: flex;
    flex-direction: column;
}

.settings-toggle-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.settings-toggle-description {
    font-size: 14px;
    color: #7f8c8d;
}

/* File Upload Styles */
.file-upload {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #2E7D32;
    background: rgba(46, 125, 50, 0.05);
}

.file-upload:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Featured Content Styles */
.featured-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.featured-content-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.btn-add-content {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-add-content:hover {
    background: rgba(46, 125, 50, 0.2);
}

.featured-content-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-content-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.featured-content-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.featured-content-header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.featured-content-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.featured-content-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.featured-content-actions {
    display: flex;
    gap: 8px;
}

.btn-save-content,
.btn-edit-content,
.btn-remove-content {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-save-content {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
}

.btn-save-content:hover {
    background: rgba(46, 125, 50, 0.2);
}

.btn-edit-content {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.btn-edit-content:hover {
    background: rgba(52, 152, 219, 0.2);
}

.btn-remove-content {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-remove-content:hover {
    background: rgba(231, 76, 60, 0.2);
}

.featured-content-form {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.featured-content-form.expanded {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.featured-content-form .form-group {
    margin: 0;
}

.featured-content-form .form-group:last-child {
    grid-column: 1 / -1;
}

.featured-content-form .form-group label {
    font-size: 12px;
    font-weight: 500;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.featured-content-form .form-group input,
.featured-content-form .form-group textarea {
    font-size: 13px;
    padding: 8px 10px;
}

.featured-content-form .form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Activities Section Styles */
.activities-section {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Calendar Timeline Styles */
.calendar-timeline-container {
    position: relative;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    min-height: 1500px;
    display: flex;
}

.timeline-hours {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: rgba(248, 249, 250, 0.8);
    border-right: 2px solid rgba(0, 0, 0, 0.08);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1;
}

.timeline-hour {
    height: 80px;
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 8px;
    padding-left: 8px;
}

.timeline-slots {
    margin-left: 80px;
    position: relative;
    min-height: 1500px;
    padding: 20px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 79px,
        rgba(0, 0, 0, 0.03) 79px,
        rgba(0, 0, 0, 0.03) 80px
    );
    flex: 1;
}

.time-slot {
    position: absolute;
    left: 20px;
    right: 20px;
    height: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: background 0.2s ease;
}

.time-slot:hover {
    background: rgba(46, 125, 50, 0.05);
}

.timeline-activity {
    position: absolute;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.15) 0%, rgba(46, 125, 50, 0.08) 100%);
    border-left: 4px solid #2E7D32;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.timeline-activity:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
    border-left-width: 6px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.2) 0%, rgba(46, 125, 50, 0.12) 100%);
}

.activity-time-badge {
    font-size: 12px;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.activity-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 4px;
}

.activity-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0;
    color: #e74c3c;
}

.timeline-activity:hover .activity-delete-btn {
    opacity: 1;
}

.activity-delete-btn:hover {
    transform: scale(1.1);
    background: rgba(231, 76, 60, 0.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calendar-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6c757d;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Day Navigation Styles */
.day-navigation {
    position: sticky;
    top: 20px;
    z-index: 100;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.day-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.day-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.day-nav-btn.active {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.15) 0%, rgba(46, 125, 50, 0.08) 100%);
    border-color: rgba(46, 125, 50, 0.3);
    color: #2E7D32;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

.day-nav-btn.active:hover {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.2) 0%, rgba(46, 125, 50, 0.12) 100%);
    border-color: rgba(46, 125, 50, 0.4);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.day-nav-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.activities-header h5 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activities-header h5::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    border-radius: 2px;
}

.btn-add-activity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.12) 0%, rgba(46, 125, 50, 0.08) 100%);
    color: #2E7D32;
    border: 1.5px solid rgba(46, 125, 50, 0.25);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.btn-add-activity:hover {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.18) 0%, rgba(46, 125, 50, 0.12) 100%);
    border-color: rgba(46, 125, 50, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.btn-add-activity:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.15);
}

.btn-add-activity svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.activity-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.12);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.activity-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.activity-header-collapsed {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    margin-left: -8px;
}

.activity-time-collapsed {
    font-size: 14px;
    color: #8e8e93;
    font-weight: 500;
    min-width: 70px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.activity-title-collapsed {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    margin-right: 8px;
}

.activity-description-collapsed {
    font-size: 13px;
    color: #8e8e93;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.activity-actions {
    display: flex;
    gap: 8px;
}

.btn-save-activity,
.btn-edit-activity,
.btn-remove-activity {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-save-activity {
    background: rgba(46, 125, 50, 0.12);
    color: #2E7D32;
}

.btn-save-activity:hover {
    background: rgba(46, 125, 50, 0.2);
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.15);
}

.btn-edit-activity {
    background: rgba(52, 152, 219, 0.12);
    color: #3498db;
}

.btn-edit-activity:hover {
    background: rgba(52, 152, 219, 0.2);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.15);
}

.btn-remove-activity {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.btn-remove-activity:hover {
    background: rgba(231, 76, 60, 0.2);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.15);
}

.activity-content {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease-out;
}

.activity-content.expanded {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.activity-content .config-grid {
    gap: 20px;
}

.activity-content .config-item {
    margin: 0;
}

.activity-content .form-group {
    margin: 0;
}

.activity-content .form-group label {
    font-size: 12px;
    font-weight: 500;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.activity-content .form-group input,
.activity-content .form-group textarea {
    font-size: 13px;
    padding: 8px 10px;
}

.activity-content .form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    border-radius: 24px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #2E7D32;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}





/* Color Grid Styles */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.color-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.color-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(46, 125, 50, 0.15);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.08);
}

.color-item label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    display: block;
}

.color-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-input-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.color-input-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.color-input-group input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'SF Mono', monospace;
    background: rgba(255, 255, 255, 0.8);
}

.color-input-group input[type="text"]:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Range Input Styles */
.form-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.1);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 8px;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2E7D32;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2E7D32;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.range-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'SF Mono', monospace;
}

.homepage-header {
    margin-bottom: 40px;
}

.homepage-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.homepage-header p {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
}

.btn-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.05);
    color: #2c3e50;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-preview:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Homepage Overview */
.homepage-overview {
    margin-bottom: 48px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.preview-header {
    margin-bottom: 24px;
}

.preview-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.preview-header p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

.preview-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-toolbar {
    background: rgba(0, 0, 0, 0.02);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.preview-actions {
    display: flex;
    gap: 8px;
}

.btn-refresh, .btn-fullscreen {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.btn-refresh:hover, .btn-fullscreen:hover {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    border-color: rgba(46, 125, 50, 0.2);
}

.preview-content {
    height: 600px;
    background: white;
}

.preview-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}


.homepage-form {
    margin-top: 24px;
}

.form-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.form-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 24px 0;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 12px;
}

.form-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #2E7D32 0%, #388E3C 100%);
    border-radius: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Management Styles */
.buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 0;
}

/* Cards Management Styles */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 12px 0;
}

.button-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.button-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(46, 125, 50, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.2);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
    transform: translateY(-1px);
}

.button-item:hover::before {
    opacity: 1;
}

.button-item:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.08);
}

.button-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.button-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.button-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.01em;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.button-info {
    margin-top: 0;
}

.button-description {
    font-size: 12px;
    color: #86868b;
    font-weight: 400;
    line-height: 1.4;
}

.button-link {
    font-size: 11px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    color: #86868b;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 500;
    letter-spacing: -0.01em;
    display: inline-block;
    margin-top: 2px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.card-header h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.02em;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    flex: 1;
}

.button-config {
    transition: all 0.3s ease;
    overflow: hidden;
}

.button-config.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.button-config.disabled .form-group input {
    background: rgba(0, 0, 0, 0.05);
    color: #95a5a6;
}

/* Card Item Styles */
.card-item {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 28px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(46, 125, 50, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.02) 0%, transparent 50%, rgba(46, 125, 50, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(46, 125, 50, 0.2);
    box-shadow: 0 12px 40px rgba(46, 125, 50, 0.15);
    transform: translateY(-4px);
}

.card-item:hover::before {
    opacity: 1;
}

.card-item:hover::after {
    opacity: 1;
}

.card-item:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
}

.card-config {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-config.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(0.3);
}

.card-config.disabled .form-group input,
.card-config.disabled .form-group textarea,
.card-config.disabled .form-group select {
    background: rgba(0, 0, 0, 0.04);
    color: #95a5a6;
    border-color: rgba(0, 0, 0, 0.06);
}

/* Wide Card Styles */
.wide-card {
    grid-column: 1 / -1;
    max-width: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(46, 125, 50, 0.1);
    box-shadow: 0 6px 24px rgba(46, 125, 50, 0.08);
}

.wide-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(46, 125, 50, 0.15);
    box-shadow: 0 12px 40px rgba(46, 125, 50, 0.12);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

/* Button Info Styles - Updated for new structure */
.button-info {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
}


.form-group textarea {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.form-group select {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

/* Homepage Statistics */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.stats-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Responsive Homepage */
@media (max-width: 1200px) {
    .homepage-config-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .preview-content {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .homepage-main {
        margin-left: 0;
        padding: 24px;
        max-width: 100vw;
    }
    
    .preview-card {
        padding: 24px;
    }
    
    .preview-content {
        height: 400px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    

}

/* Responsive Timer Page */
@media (max-width: 1200px) {
    .timer-config-section {
        padding: 0;
    }
    
    .config-card {
        padding: 40px 36px;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .timer-config-section {
        padding: 0;
    }
    
    .config-card {
        padding: 32px 20px;
        border-radius: 20px;
    }
    
    .config-card .card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .config-card .header-icon {
        width: 40px;
        height: 40px;
    }
    
    .config-card .card-header h3 {
        font-size: 22px;
    }
    
    .config-section {
        padding: 20px;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .timer-main {
        margin-left: 0;
        padding: 24px;
        max-width: 100vw;
    }
    
    .countdown-display {
        padding: 32px 24px;
    }
    
    .countdown-value {
        font-size: 36px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .btn-action {
        width: 100%;
    }
}

/* Responsive Design for Enhanced Sections */
@media (max-width: 1200px) {
    .analytics-grid,
    .system-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .quick-action-card {
        padding: 20px;
        gap: 14px;
    }
    
    .action-icon {
        width: 44px;
        height: 44px;
    }
    
    .system-card {
        padding: 24px;
    }
    
    .health-item,
    .notification-item {
        padding: 12px;
        gap: 10px;
    }
    
    .health-icon,
    .notification-icon {
        width: 28px;
        height: 28px;
    }
}

/* Bottom Section - Professional Style */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.chart-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.card-header {
    margin-bottom: 36px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.view-all {
    color: #2E7D32;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(46, 125, 50, 0.08);
}

.view-all:hover {
    color: #388E3C;
    background: rgba(46, 125, 50, 0.12);
    transform: translateX(4px);
}

.card-header p {
    color: #7f8c8d;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
}

/* Chart Legend - Professional Style */
.chart-legend {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.legend-item:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.legend-color.mobile {
    background: #2E7D32;
}

.legend-color.desktop {
    background: #1976D2;
}

.legend-item span {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
}

/* Chart Container - Professional Style */
.chart-container {
    height: 280px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
}

/* Responsive Design - Professional Style */
@media (max-width: 1400px) {
    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .kpi-card {
        padding: 28px;
        gap: 18px;
    }
    
    .kpi-icon {
        width: 56px;
        height: 56px;
    }
    
    .kpi-value {
        font-size: 30px;
    }
}

@media (max-width: 1200px) {
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 18px;
    }
    
    .kpi-card {
        padding: 26px;
        gap: 16px;
    }
    
    .kpi-icon {
        width: 52px;
        height: 52px;
    }
    
    .kpi-value {
        font-size: 28px;
    }
    
    .kpi-content h3 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 32px;
        max-width: 100vw;
    }
    
    .top-section {
        flex-direction: column;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .kpi-card {
        padding: 24px;
        gap: 14px;
        min-height: 120px;
    }
    
    .kpi-icon {
        width: 48px;
        height: 48px;
    }
    
    .kpi-value {
        font-size: 26px;
    }
    
    .kpi-content h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        min-width: 240px;
    }
    
    .welcome-banner {
        padding: 36px;
    }
    
    .welcome-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 0 24px;
    }
    
    .dashboard-main {
        padding: 24px;
    }
    
    .welcome-banner {
        padding: 28px;
    }
    
    .welcome-content h2 {
        font-size: 28px;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .kpi-card {
        padding: 22px;
        gap: 12px;
    }
    
    .kpi-icon {
        width: 44px;
        height: 44px;
    }
    
    .kpi-value {
        font-size: 24px;
    }
    
    .chart-card {
        padding: 28px;
    }
}

/* Custom Scrollbar - Professional Style */
.dashboard-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.3);
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 125, 50, 0.5);
}

/* Poster Setup Styling */
.poster-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    padding: 12px 0;
}

.poster-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 28px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.poster-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2E7D32, #388E3C, #4CAF50);
    border-radius: 24px 24px 0 0;
}

.poster-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.02) 0%, rgba(56, 142, 60, 0.02) 100%);
    pointer-events: none;
    border-radius: 24px;
}

.poster-item:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(46, 125, 50, 0.15);
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.12);
    transform: translateY(-2px);
}

.poster-item:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.08);
}

.poster-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.poster-header h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex: 1;
    margin: 0;
}

.poster-config {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.poster-config.disabled {
    opacity: 0.4;
    filter: grayscale(0.3);
    pointer-events: none;
}

.poster-config.disabled input,
.poster-config.disabled textarea,
.poster-config.disabled select {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.4);
}

/* File input styling */
.poster-config input[type="file"] {
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed rgba(46, 125, 50, 0.2);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1d1d1f;
}

.poster-config input[type="file"]:hover {
    border-color: rgba(46, 125, 50, 0.4);
    background: rgba(46, 125, 50, 0.02);
}

.poster-config input[type="file"]:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Color input styling */
.poster-config input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.poster-config input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.poster-config input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 12px;
}

/* Responsive design for poster container */
@media (max-width: 1200px) {
    .poster-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .poster-container {
        gap: 20px;
        padding: 8px 0;
    }
    
    .poster-item {
        padding: 24px;
        border-radius: 20px;
    }
    
    .poster-header h5 {
        font-size: 16px;
    }
}

/* PDF Upload Styling */
.pdf-upload {
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed rgba(46, 125, 50, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1d1d1f;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.pdf-upload::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 12px;
    opacity: 0.7;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolyline points='14 2 14 8 20 8' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cline x1='16' y1='13' x2='8' y2='13' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='16' y1='17' x2='8' y2='17' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round'/%3E%3Cpolyline points='10 9 9 9 8 9' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pdf-upload:hover {
    border-color: rgba(46, 125, 50, 0.5);
    background: rgba(46, 125, 50, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.1);
}

.pdf-upload:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.pdf-upload:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.08);
}

.upload-info {
    margin-top: 16px;
    text-align: center;
}

.upload-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.upload-info .file-size {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* File upload state styling */
.pdf-upload.has-file {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.pdf-upload.has-file::before {
    content: '✅';
    opacity: 1;
}

.pdf-upload.has-file::after {
    content: 'PDF geüpload';
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
    margin-top: 8px;
}

/* Drag and drop styling */
.pdf-upload.drag-over {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
    transform: scale(1.02);
}

.pdf-upload.drag-over::before {
    content: '📤';
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Error state */
.pdf-upload.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.pdf-upload.error::before {
    content: '❌';
    opacity: 1;
}

.pdf-upload.error::after {
    content: 'Fout bij uploaden';
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
    margin-top: 8px;
}

/* Update Popup Notification */
.update-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
    min-width: 320px;
    overflow: hidden;
}

.update-popup.show {
    transform: translateX(0);
}

.update-popup-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    position: relative;
}

.update-popup-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    color: #10b981;
}

.update-popup-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.update-popup-success .update-popup-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.update-popup-error .update-popup-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.update-popup-info .update-popup-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.update-popup-text {
    flex: 1;
    min-width: 0;
}

.update-popup-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

.update-popup-message {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

.update-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.update-popup-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.update-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.update-popup-success {
    border-left: 4px solid #10b981;
}

.update-popup-error {
    border-left: 4px solid #ef4444;
}

.update-popup-info {
    border-left: 4px solid #3b82f6;
}

/* Dashboard Section Styles */
.dashboard-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dashboard-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

.dashboard-section .section-header {
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.dashboard-section .section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2E7D32 0%, #388E3C 100%);
    border-radius: 2px;
}

.dashboard-section .section-header h3 {
    font-size: 26px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dashboard-section .section-header p {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.5;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-action-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.quick-action-btn:hover .quick-action-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.quick-action-btn:hover .quick-action-icon::before {
    left: 100%;
}

.quick-action-text {
    flex: 1;
    min-width: 0;
}

.quick-action-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.quick-action-desc {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.4;
}

/* Page Status Grid */
.page-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.page-status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.page-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--status-color, #757575);
    transition: width 0.3s ease;
}

.page-status-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.page-status-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

.page-status-card.enabled {
    border-color: rgba(46, 125, 50, 0.2);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(56, 142, 60, 0.05) 100%);
    --status-color: #2E7D32;
}

.page-status-card.enabled:hover {
    border-color: rgba(46, 125, 50, 0.4);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08) 0%, rgba(56, 142, 60, 0.08) 100%);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.25);
}

.page-status-card.disabled {
    border-color: rgba(117, 117, 117, 0.3);
    background: rgba(117, 117, 117, 0.04);
    opacity: 0.7;
}

.page-status-card.disabled:hover {
    opacity: 0.9;
    border-color: rgba(117, 117, 117, 0.5);
    background: rgba(117, 117, 117, 0.08);
}

.page-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-status-card.enabled .page-status-icon {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.15) 0%, rgba(56, 142, 60, 0.15) 100%);
    color: #2E7D32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.page-status-card:hover .page-status-icon {
    transform: scale(1.1) rotate(5deg);
}

.page-status-content {
    flex: 1;
    min-width: 0;
}

.page-status-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.page-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-status-badge.active {
    background: rgba(46, 125, 50, 0.15);
    color: #2E7D32;
}

.page-status-badge.inactive {
    background: rgba(117, 117, 117, 0.15);
    color: #757575;
}

/* Stats Overview Grid */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stats-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
}

.stats-card:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stats-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.stats-card-header svg {
    width: 18px;
    height: 18px;
    color: #1976D2;
}

.stats-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
}

/* Dark Mode Styles */
body.dark-mode .dashboard-section {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .quick-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .quick-action-title {
    color: #e0e0e0;
}

body.dark-mode .quick-action-desc {
    color: #a0a0a0;
}

body.dark-mode .page-status-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .page-status-card.enabled {
    border-color: rgba(46, 125, 50, 0.4);
    background: rgba(46, 125, 50, 0.1);
}

body.dark-mode .page-status-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .page-status-name {
    color: #e0e0e0;
}

body.dark-mode .stats-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stats-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .stats-card-header {
    color: #e0e0e0;
}

body.dark-mode .stat-label {
    color: #a0a0a0;
}

body.dark-mode .stat-value {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .update-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        transform: translateY(-120px);
    }
    
    .update-popup.show {
        transform: translateY(0);
    }
    
    .update-popup-content {
        padding: 16px 20px;
    }
    
    .update-popup-icon {
        width: 40px;
        height: 40px;
    }
    
    .update-popup-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .update-popup-title {
        font-size: 0.95rem;
    }
    
    .update-popup-message {
        font-size: 0.85rem;
    }
    
    .quick-actions-grid,
    .page-status-grid,
    .stats-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-section {
        padding: 24px;
    }
}
