/* Admin Dashboard Styles */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 70px;
    --primary-color: #1a5276;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --purple-color: #9b59b6;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Font size adjustments */
h1 {
    font-size: 20px;
}

h2 {
    font-size: 18px;
}

h3 {
    font-size: 16px;
}

p, span, div, li, a, button, input, label, textarea, select {
    font-size: 12px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 12px;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark-color) 0%, #1a1a2e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo-text h1 {
    font-size: 20px;
    margin-bottom: 0;
    color: white;
    font-weight: 600;
}

.logo-text span {
    font-size: 12px;
    opacity: 0.7;
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
}

.close-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.sidebar-nav {
    flex-grow: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-size: 12px;
    border-radius: 4px;
    margin: 0 10px;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 4px 0 0 4px;
}

.sidebar-nav li i {
    font-size: 12px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-details h4 {
    font-size: 12px;
    margin-bottom: 2px;
    color: white;
}

.user-details span {
    font-size: 12px;
    opacity: 0.7;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius);
    font-size: 12px;
    border-radius: 4px;
}

.logout-btn:hover {
    color: white;
    background-color: rgba(231, 76, 60, 0.2);
}

/* Main Content */
.admin-main {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
}

.admin-main.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Topbar */
.admin-topbar {
    height: var(--topbar-height);
    background-color: white;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--dark-color);
    cursor: pointer;
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: var(--light-color);
}

.breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

.search-box input {
    border: none;
    background: none;
    padding: 8px 15px;
    width: 200px;
    outline: none;
    font-size: 12px;
}

.search-box button {
    background: none;
    border: none;
    padding: 8px 15px;
    color: var(--dark-color);
    cursor: pointer;
}

/* Notifications */
.notifications {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--dark-color);
    cursor: pointer;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notification-btn:hover {
    background-color: var(--light-color);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

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

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--dark-color);
}

.mark-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.mark-read:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: rgba(26, 82, 118, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.notification-icon.blue {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

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

.notification-icon.green {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.notification-icon.purple {
    background-color: rgba(155, 89, 182, 0.1);
    color: var(--purple-color);
}

.notification-content h4 {
    margin: 0 0 5px;
    font-size: 12px;
    color: var(--dark-color);
}

.notification-content p {
    margin: 0 0 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.notification-footer {
    padding: 10px 20px;
    text-align: center;
}

.notification-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

/* User Profile */
.user-profile {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.profile-btn:hover {
    background-color: var(--light-color);
}

.profile-btn img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.profile-btn span {
    font-size: 12px;
    color: var(--dark-color);
}


/* Avatar Circle Styles */
        .avatar-circle {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 600;
            text-transform: uppercase;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            font-family: 'Poppins', sans-serif;
        }

        .avatar-circle::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
            border-radius: 50%;
        }

        .avatar-circle:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }


        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 15px;
            color: var(--border-color);
        }

        /* Debug Info */
        .debug-info {
            background-color: #f8f9fa;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            padding: 15px;
            margin: 20px;
            font-family: monospace;
            font-size: 14px;
        }

        .debug-info h3 {
            margin-top: 0;
            color: var(--danger-color);
        }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

.dropdown-menu i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 5px 0;
}

/* Admin Content */
.admin-content {
    padding: 20px;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--box-shadow);
}

.welcome-content h1 {
    font-size: 20px;
    margin-bottom: 5px;
    color: white;
}

.welcome-content p {
    opacity: 0.9;
    margin: 0;
    font-size: 12px;
}

.welcome-actions {
    display: flex;
    gap: 10px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-card:hover::before {
    height: 100%;
    width: 100%;
    opacity: 0.1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-icon.green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.stat-info p {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 12px;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.chart-container.large {
    grid-column: span 2;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.chart-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 600;
}

.chart-actions {
    display: flex;
    gap: 10px;
}

.chart-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition);
}

.chart-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-action {
    background: none;
    border: none;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 12px;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chart-action:hover {
    background-color: var(--light-color);
}

.chart-body {
    padding: 20px;
    height: 300px;
    position: relative;
}

/* Activity Row */
.activity-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.recent-activity,
.quick-actions {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 600;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
}

.activity-list {
    padding: 0;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.activity-item:hover {
    background-color: #f8f9fa;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.activity-icon.blue {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

.activity-icon.orange {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.activity-icon.green {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.activity-icon.purple {
    background-color: rgba(155, 89, 182, 0.1);
    color: var(--purple-color);
}

.activity-content h4 {
    margin: 0 0 5px;
    font-size: 12px;
    color: var(--dark-color);
}

.activity-content p {
    margin: 0 0 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.action-card:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.action-icon {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.action-card:hover .action-icon {
    color: white;
}

.action-card h4 {
    margin: 0 0 5px;
    font-size: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.action-card p {
    margin: 0;
    font-size: 12px;
    text-align: center;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* Recent Posts */
.recent-posts {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.posts-table {
    overflow-x: auto;
}

.posts-table table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table th,
.posts-table td {
    padding: 12px 15px;
    text-align: left;
}

.posts-table th {
    background-color: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posts-table td {
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.posts-table tr:last-child td {
    border-bottom: none;
}

.posts-table tr:hover {
    background-color: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.badge.blue {
    background-color: var(--info-color);
}

.badge.orange {
    background-color: var(--warning-color);
}

.badge.green {
    background-color: var(--success-color);
}

.badge.purple {
    background-color: var(--purple-color);
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status.published {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.status.draft {
    background-color: rgba(241, 196, 15, 0.1);
    color: var(--warning-color);
}

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

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 12px;
}

.action-btn.edit {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

.action-btn.edit:hover {
    background-color: var(--info-color);
    color: white;
}

.action-btn.view {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.action-btn.view:hover {
    background-color: var(--success-color);
    color: white;
}

.action-btn.delete {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.action-btn.delete:hover {
    background-color: var(--danger-color);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(26, 82, 118, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 82, 118, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: #1a5276;
}

.btn-outline:hover {
    background-color: #136faa;
    color: white;
    transform: translateY(-2px);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 12px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

/* Login Form Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
}

.login-form {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px;
    text-align: center;
}

.login-header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-header .logo img {
    height: 60px;
    width: auto;
}

.login-header .logo-text h1 {
    font-size: 20px;
    margin-bottom: 0;
    color: white;
}

.login-header .logo-text span {
    font-size: 12px;
    opacity: 0.8;
    color: white;
}

.login-form form {
    padding: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 12px;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    color: var(--dark-color);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background-color: #eee;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: var(--transition);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

/* ===================== Responsive Design ===================== */

/* Tablets (768px - 991px) */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        width: var(--sidebar-width);
        left: -100%;
        transition: var(--transition);
    }

    .admin-sidebar.show {
        left: 0;
    }

    .admin-main {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .close-sidebar {
        display: flex;
    }

    .admin-topbar {
        padding: 0 15px;
    }

    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .charts-row,
    .activity-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices (< 768px) */
@media (max-width: 767.98px) {
    .topbar-right,
    .search-box input {
        display: none;
    }

    .admin-main,
    .admin-content {
        padding: 15px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        padding: 15px;
    }

    .chart-body {
        padding: 15px;
        height: auto;
    }

    .notification-dropdown,
    .dropdown-menu {
        width: 90vw;
        right: 5vw;
    }

    .login-form {
        max-width: 100%;
        padding: 20px;
    }

    .login-header {
        padding: 20px;
    }

    .login-form form {
        padding: 20px;
    }
    .stat-info h3 {
        font-size: 16px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
}


/* Tabel default (desktop & tablet) */
.posts-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.posts-table thead {
    background-color: var(--light-color);
}

.posts-table th, .posts-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.posts-table th {
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsif Mobile */
@media (max-width: 767.98px) {
    .posts-table table, 
    .posts-table thead, 
    .posts-table tbody, 
    .posts-table th, 
    .posts-table td, 
    .posts-table tr {
        display: block;
        width: 100%;
    }

    .posts-table thead {
        display: none; /* Hide headers */
    }

    .posts-table tr {
        margin-bottom: 15px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        padding: 10px;
    }

    .posts-table td {
        padding: 10px 15px;
        text-align: left;
        position: relative;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .posts-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--dark-color);
        flex: 1;
        min-width: 100px;
    }

    .posts-table td > *:not(:first-child) {
        flex: 2;
        text-align: right;
    }

    .table-actions {
        justify-content: flex-end;
    }
}


.profile-img {
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 10px;
}



/* CSS untuk Search Engine */
.search-container {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    position: relative;
    flex-grow: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 5px 150px 5px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
}

.search-btn {
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-btn:active {
    transform: translateY(0);
}

.reset-btn {
    padding: 12px 25px;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.reset-btn:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reset-btn:active {
    transform: translateY(0);
}

.search-info {
    margin-top: 10px;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-group {
        min-width: 100%;
    }
    
    .search-btn, .reset-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 10px;
    }
    
    .search-input {
        padding: 10px 40px 10px 12px;
        font-size: 12px;
    }
    
    .search-btn, .reset-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

        /* Custom File Input Styles */
        .custom-file {
            position: relative;
            display: inline-block;
            width: 100%;
            margin-bottom: 0;
        }
        .custom-file-input {
            position: relative;
            z-index: 2;
            width: 100%;
            height: calc(2.5rem + 2px);
            margin: 0;
            opacity: 0;
            cursor: pointer;
        }
        .custom-file-label {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            z-index: 1;
            height: calc(2.5rem + 2px);
            padding: 0.5rem 1rem;
            font-weight: 500;
            line-height: 1.5;
            color: #495057;
            background-color: #fff;
            border: 2px dashed #ced4da;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .custom-file-label::before {
            content: "\f030";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: var(--primary-color);
            transition: all 0.3s ease;
        }
        .custom-file-label::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(135deg, rgba(26, 82, 118, 0.05), rgba(41, 128, 185, 0.05));
            transition: all 0.5s ease;
            z-index: -1;
        }
        .custom-file-input:focus ~ .custom-file-label {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(26, 82, 118, 0.25);
            border-style: solid;
        }
        .custom-file-input:focus ~ .custom-file-label::after {
            width: 100%;
        }
        .custom-file:hover .custom-file-label {
            border-color: var(--primary-color);
            background-color: rgba(26, 82, 118, 0.02);
        }
        .custom-file:hover .custom-file-label::before {
            color: var(--secondary-color);
            transform: translateY(-50%) scale(1.1);
        }
        .custom-file-input:disabled ~ .custom-file-label {
            background-color: var(--light-color);
            border-color: #ced4da;
            cursor: not-allowed;
            opacity: 0.6;
        }
        .custom-file-input:disabled ~ .custom-file-label::before {
            color: #6c757d;
        }
        /* File with selected file */
        .custom-file-input.has-file ~ .custom-file-label {
            border-style: solid;
            border-color: var(--success-color);
            background-color: rgba(39, 174, 96, 0.05);
        }
        .custom-file-input.has-file ~ .custom-file-label::before {
            content: "\f00c";
            color: var(--success-color);
        }
        /* File name display */
        .file-name {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 2.5rem;
        }
        /* Current image preview */
        .current-image {
            margin-top: 15px;
            padding: 15px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }
        .current-image:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }
        .current-image img {
            max-width: 100px;
            max-height: 100px;
            border-radius: var(--border-radius);
            border: 2px solid white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            object-fit: cover;
            transition: all 0.3s ease;
        }
        .current-image:hover img {
            transform: scale(1.05);
        }
        .current-image-info {
            flex: 1;
        }
        .current-image-info strong {
            display: block;
            margin-bottom: 5px;
            color: var(--dark-color);
            font-weight: 600;
        }
        .current-image-info small {
            display: block;
            color: var(--text-muted);
            font-size: 12px;
        }
        /* Remove image button */
        .remove-image {
            background: linear-gradient(135deg, var(--danger-color), #c0392b);
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            flex-shrink: 0;
            box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
        }
        .remove-image:hover {
            transform: scale(1.1) rotate(90deg);
            box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
        }
        /* Drag and drop area */
        .file-drop-area {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            padding: 2rem;
            border: 2px dashed #ced4da;
            border-radius: var(--border-radius);
            background-color: rgba(26, 82, 118, 0.02);
            transition: all 0.3s ease;
            cursor: pointer;
            margin-bottom: 1rem;
        }
        .file-drop-area.highlight {
            border-color: var(--primary-color);
            background-color: rgba(26, 82, 118, 0.05);
        }
        .file-drop-area i {
            font-size: 12px;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        .file-drop-area p {
            margin: 0;
            color: var(--text-muted);
            text-align: center;
        }
        .file-drop-area p strong {
            color: var(--primary-color);
        }
        /* File list */
        .file-list {
            margin-top: 1rem;
        }
        .file-item {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            background-color: var(--light-color);
            border-radius: var(--border-radius);
            margin-bottom: 0.5rem;
            transition: all 0.3s ease;
        }
        .file-item:hover {
            background-color: #e9ecef;
        }
        .file-item i {
            margin-right: 0.75rem;
            color: var(--primary-color);
        }
        .file-item .file-name {
            flex: 1;
            font-weight: 500;
        }
        .file-item .file-size {
            color: var(--text-muted);
            font-size: 12px;
            margin-right: 0.75rem;
        }
        .file-item .remove-file {
            background: none;
            border: none;
            color: var(--danger-color);
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s ease;
        }
        .file-item .remove-file:hover {
            transform: scale(1.2);
        }
        /* Progress bar */
        .file-progress {
            height: 4px;
            background-color: #e9ecef;
            border-radius: 2px;
            margin-top: 0.5rem;
            overflow: hidden;
        }
        .file-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            border-radius: 2px;
            width: 0;
            transition: width 0.3s ease;
        }
        /* Responsive adjustments */
        @media (max-width: 767.98px) {
            .custom-file-label {
                padding: 0.5rem 0.75rem;
                height: calc(2.25rem + 2px);
            }
            .custom-file-label::before {
                right: 0.75rem;
                font-size: 12px;
            }
            .file-name {
                padding-right: 2rem;
            }
            .current-image {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .current-image img {
                max-width: 80px;
                max-height: 80px;
            }
            .file-drop-area {
                padding: 1.5rem;
            }
            .file-drop-area i {
                font-size: 12px;
            }
        }
        /* Additional styles for form */
        .form-container {
            background-color: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            overflow: hidden;
        }
        .card {
            border-bottom: 1px solid var(--border-color);
        }
        .card:last-child {
            border-bottom: none;
        }
        .card-header {
            padding: 15px 20px;
            background-color: var(--light-color);
            border-bottom: 1px solid var(--border-color);
        }
        .card-header h3 {
            margin: 0;
            font-size: 16px;
            color: var(--dark-color);
            font-weight: 600;
        }
        .card-header h3 i {
            margin-right: 10px;
            color: var(--primary-color);
        }
        .card-body {
            padding: 20px;
        }
        .content-section {
            margin-bottom: 20px;
        }
        .content-section h4 {
            margin-bottom: 15px;
            color: var(--dark-color);
            font-weight: 500;
        }
        .content-section hr {
            margin: 20px 0;
            border-top: 1px solid var(--border-color);
        }
        .form-row {
            display: flex;
            flex-wrap: wrap;
            margin-right: -5px;
            margin-left: -5px;
        }
        .form-row > .form-group {
            padding-right: 5px;
            padding-left: 5px;
        }
        .col-md-12 {
            flex: 0 0 100%;
            max-width: 100%;
        }
        .col-md-6 {
            flex: 0 0 50%;
            max-width: 50%;
        }
        .col-md-4 {
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
        }
        .custom-file {
            position: relative;
            display: inline-block;
            width: 100%;
            height: calc(1.5em + 0.75rem + 2px);
            margin-bottom: 0;
        }
        .custom-file-input {
            position: relative;
            z-index: 2;
            width: 100%;
            height: calc(1.5em + 0.75rem + 2px);
            margin: 0;
            opacity: 0;
        }
        .custom-file-label {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            z-index: 1;
            height: calc(1.5em + 0.75rem + 2px);
            padding: 0.375rem 0.75rem;
            font-weight: 400;
            line-height: 1.5;
            color: #495057;
            background-color: #fff;
            border: 1px solid #ced4da;
            border-radius: var(--border-radius);
            cursor: pointer;
        }
        .custom-file-label::after {
            content: "Browse";
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            z-index: 3;
            display: block;
            height: calc(1.5em + 0.75rem + 2px);
            padding: 0.375rem 0.75rem;
            line-height: 1.5;
            color: #495057;
            content: "Browse";
            background-color: var(--light-color);
            border-left: inherit;
            border-radius: 0 var(--border-radius) var(--border-radius) 0;
        }
        .form-text {
            display: block;
            margin-top: 0.25rem;
            font-size: 12px;
            color: #6c757d;
        }
        .form-actions {
            padding: 20px;
            display: flex;
            gap: 10px;
            background-color: var(--light-color);
        }
        .is-invalid {
            border-color: var(--danger-color) !important;
        }
        .alert {
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid transparent;
            border-radius: var(--border-radius);
        }
        .alert-success {
            color: #155724;
            background-color: #d4edda;
            border-color: #c3e6cb;
        }
        .alert-danger {
            color: #721c24;
            background-color: #f8d7da;
            border-color: #f5c6cb;
        }
        .current-image {
            margin-top: 10px;
            padding: 10px;
            background-color: var(--light-color);
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .current-image img {
            max-width: 100px;
            max-height: 100px;
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
        }
        .current-image-info {
            flex: 1;
        }
        .current-image-info small {
            display: block;
            color: var(--text-muted);
        }
        /* Guru Section Styles */
        .guru-section {
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .section-header h4 {
            margin: 0;
            color: var(--dark-color);
            font-weight: 500;
        }
        .btn-sm {
            padding: 5px 10px;
            font-size: 12px;
        }
        /* Grid layout for guru items */
        .guru-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
        }
        .guru-item {
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            background-color: #f8f9fa;
            transition: var(--transition);
            overflow: hidden;
        }
        .guru-item:hover {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        .guru-content {
            display: flex;
            align-items: stretch;
        }
        .guru-info {
            flex: 1;
            padding: 15px;
        }
        .guru-info label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark-color);
        }
        .guru-actions {
            display: flex;
            align-items: center;
            padding: 0 15px;
            border-left: 1px solid var(--border-color);
            background-color: rgba(0, 0, 0, 0.02);
        }
        .btn-remove-guru {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: var(--danger-color);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 12px;
            cursor: pointer;
            transition: var(--transition);
        }
        .btn-remove-guru:hover {
            background-color: #c0392b;
            transform: scale(1.1);
        }
        /* Animation for new guru item */
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .guru-item {
            animation: slideIn 0.3s ease;
        }
        /* Konten Section Styles */
        .konten-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .btn-remove-konten {
            background: none;
            border: none;
            color: var(--danger-color);
            cursor: pointer;
            font-size: 12px;
            padding: 5px;
            border-radius: 4px;
            transition: var(--transition);
        }
        .btn-remove-konten:hover {
            background-color: rgba(231, 76, 60, 0.1);
            transform: rotate(90deg);
        }
        /* Galeri Section Styles - TAMBAHAN BARU */
        .galeri-section {
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
        }
        .galeri-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .btn-remove-galeri {
            background: none;
            border: none;
            color: var(--danger-color);
            cursor: pointer;
            font-size: 12px;
            padding: 5px;
            border-radius: 4px;
            transition: var(--transition);
        }
        .btn-remove-galeri:hover {
            background-color: rgba(231, 76, 60, 0.1);
            transform: rotate(90deg);
        }
        /* Responsive adjustments */
        @media (max-width: 767.98px) {
            .col-md-6, .col-md-4 {
                flex: 0 0 100%;
                max-width: 100%;
            }
            .guru-grid {
                grid-template-columns: 1fr;
            }
            .guru-content {
                flex-direction: column;
            }
            .guru-actions {
                border-left: none;
                border-top: 1px solid var(--border-color);
                padding: 10px 15px;
                justify-content: flex-end;
            }
            .btn-remove-guru {
                width: auto;
                height: auto;
                padding: 8px 12px;
                border-radius: var(--border-radius);
            }
            .btn-remove-guru i {
                margin-right: 5px;
            }
            .btn-remove-guru span {
                display: inline;
            }
        }
        
     /* Additional styles for form */
        .form-container {
            background-color: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            overflow: hidden;
        }
        
        .card {
            border-bottom: 1px solid var(--border-color);
        }
        
        .card:last-child {
            border-bottom: none;
        }
        
        .card-header {
            padding: 15px 20px;
            background-color: var(--light-color);
            border-bottom: 1px solid var(--border-color);
        }
        
        .card-header h3 {
            margin: 0;
            font-size: 16px;
            color: var(--dark-color);
            font-weight: 600;
        }
        
        .card-header h3 i {
            margin-right: 10px;
            color: var(--primary-color);
        }
        
        .card-body {
            padding: 20px;
        }
        
        .content-section {
            margin-bottom: 20px;
        }
        
        .content-section h4 {
            margin-bottom: 15px;
            color: var(--dark-color);
            font-weight: 500;
        }
        
        .content-section hr {
            margin: 20px 0;
            border-top: 1px solid var(--border-color);
        }
        
        .form-row {
            display: flex;
            flex-wrap: wrap;
            margin-right: -5px;
            margin-left: -5px;
        }
        
        .form-row > .form-group {
            padding-right: 5px;
            padding-left: 5px;
        }
        
        .col-md-12 {
            flex: 0 0 100%;
            max-width: 100%;
        }
        
        .col-md-6 {
            flex: 0 0 50%;
            max-width: 50%;
        }
        
        .col-md-4 {
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
        }
        
        .custom-file {
            position: relative;
            display: inline-block;
            width: 100%;
            margin-bottom: 0;
        }
        
        .custom-file-input {
            position: relative;
            z-index: 2;
            width: 100%;
            height: calc(2.5rem + 2px);
            margin: 0;
            opacity: 0;
            cursor: pointer;
        }
        
        .custom-file-label {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            z-index: 1;
            height: calc(2.5rem + 2px);
            padding: 0.5rem 1rem;
            font-weight: 500;
            line-height: 1.5;
            color: #495057;
            background-color: #fff;
            border: 2px dashed #ced4da;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .custom-file-label::before {
            content: "\f030";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: var(--primary-color);
            transition: all 0.3s ease;
        }
        
        .custom-file-label::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(135deg, rgba(26, 82, 118, 0.05), rgba(41, 128, 185, 0.05));
            transition: all 0.5s ease;
            z-index: -1;
        }
        
        .custom-file-input:focus ~ .custom-file-label {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(26, 82, 118, 0.25);
            border-style: solid;
        }
        
        .custom-file-input:focus ~ .custom-file-label::after {
            width: 100%;
        }
        
        .custom-file:hover .custom-file-label {
            border-color: var(--primary-color);
            background-color: rgba(26, 82, 118, 0.02);
        }
        
        .custom-file:hover .custom-file-label::before {
            color: var(--secondary-color);
            transform: translateY(-50%) scale(1.1);
        }
        
        .custom-file-input:disabled ~ .custom-file-label {
            background-color: var(--light-color);
            border-color: #ced4da;
            cursor: not-allowed;
            opacity: 0.6;
        }
        
        .custom-file-input:disabled ~ .custom-file-label::before {
            color: #6c757d;
        }
        
        /* File with selected file */
        .custom-file-input.has-file ~ .custom-file-label {
            border-style: solid;
            border-color: var(--success-color);
            background-color: rgba(39, 174, 96, 0.05);
        }
        
        .custom-file-input.has-file ~ .custom-file-label::before {
            content: "\f00c";
            color: var(--success-color);
        }
        
        /* File name display */
        .file-name {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 2.5rem;
        }
        
        .form-text {
            display: block;
            margin-top: 0.25rem;
            font-size: 12px;
            color: #6c757d;
        }
        
        .form-actions {
            padding: 20px;
            display: flex;
            gap: 10px;
            background-color: var(--light-color);
        }
        
        .is-invalid {
            border-color: var(--danger-color) !important;
        }
        
        .alert {
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid transparent;
            border-radius: var(--border-radius);
        }
        
        .alert-success {
            color: #155724;
            background-color: #d4edda;
            border-color: #c3e6cb;
        }
        
        .alert-danger {
            color: #721c24;
            background-color: #f8d7da;
            border-color: #f5c6cb;
        }
        
        /* Guru Section Styles */
        .guru-section {
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .section-header h4 {
            margin: 0;
            color: var(--dark-color);
            font-weight: 500;
        }
        
        .btn-sm {
            padding: 5px 10px;
            font-size: 12px;
        }
        
        /* Grid layout for guru items */
        .guru-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
        }
        
        .guru-item {
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            background-color: #f8f9fa;
            transition: var(--transition);
            overflow: hidden;
        }
        
        .guru-item:hover {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        .guru-content {
            display: flex;
            align-items: stretch;
        }
        
        .guru-info {
            flex: 1;
            padding: 15px;
        }
        
        .guru-info label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark-color);
        }
        
        .guru-actions {
            display: flex;
            align-items: center;
            padding: 0 15px;
            border-left: 1px solid var(--border-color);
            background-color: rgba(0, 0, 0, 0.02);
        }
        
        .btn-remove-guru {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: var(--danger-color);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 12px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-remove-guru:hover {
            background-color: #c0392b;
            transform: scale(1.1);
        }
        
        /* Animation for new guru item */
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .guru-item {
            animation: slideIn 0.3s ease;
        }
        
        /* Konten & Galeri Section Styles */
        .konten-header, .galeri-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .btn-remove-konten, .btn-remove-galeri {
            background: none;
            border: none;
            color: var(--danger-color);
            cursor: pointer;
            font-size: 12px;
            padding: 5px;
            border-radius: 4px;
            transition: var(--transition);
        }
        
        .btn-remove-konten:hover, .btn-remove-galeri:hover {
            background-color: rgba(231, 76, 60, 0.1);
            transform: rotate(90deg);
        }
        
        /* Responsive adjustments */
        @media (max-width: 767.98px) {
            .col-md-6, .col-md-4 {
                flex: 0 0 100%;
                max-width: 100%;
            }
            
            .guru-grid {
                grid-template-columns: 1fr;
            }
            
            .guru-content {
                flex-direction: column;
            }
            
            .guru-actions {
                border-left: none;
                border-top: 1px solid var(--border-color);
                padding: 10px 15px;
                justify-content: flex-end;
            }
            
            .btn-remove-guru {
                width: auto;
                height: auto;
                padding: 8px 12px;
                border-radius: var(--border-radius);
            }
            
            .btn-remove-guru i {
                margin-right: 5px;
            }
            
            .btn-remove-guru span {
                display: inline;
            }
        }