/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    width: 100%;
    max-width: 1600px;
    height: 95vh;
    background-color: #1e293b;
    border-radius: 20px;
    overflow: hidden;
}

/* --- Sidebar Kiri --- */
.sidebar-left {
    background-color: #293548;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-container .logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.logo-container h2 {
    font-size: 1.1rem;
    font-weight: 500;
}

.main-nav h3 {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e2e8f0;
    text-decoration: none;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    background-color: #3b82f6;
}

.main-nav ul li a i {
    width: 20px;
    text-align: center;
}

.admin-panel-link {
    margin-top: 2rem;
}

.admin-panel-link a {
    display: block;
    text-align: center;
    background-color: #3b82f6;
    color: white;
    padding: 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.admin-panel-link a:hover {
    background-color: #2563eb;
}

.illustration-bottom {
    margin-top: auto;
    text-align: center;
}
.illustration-bottom img {
    max-width: 100%;
    opacity: 0.6;
}
.footer-text {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    margin-top: 1rem;
}


/* --- Konten Utama --- */
.main-content {
    padding: 2rem;
    overflow-y: auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: #334155;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 200px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    margin-bottom: 1.5rem;
}

.card-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Warna Kartu */
.card-red { background-color: #ef4444; }
.card-green { background-color: #22c55e; }
.card-orange { background-color: #f97316; }
.card-blue { background-color: #3b82f6; }
.card-purple { background-color: #8b5cf6; }
.card-teal { background-color: #14b8a6; }


/* --- Sidebar Kanan --- */
.sidebar-right {
    background-color: #111827;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.update-header h3 {
    font-size: 1.2rem;
}

.update-item {
    display: flex;
    gap: 1rem;
    background-color: #1f2937;
    padding: 1rem;
    border-radius: 15px;
}

.update-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #9ca3af;
}

.update-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #f9fafb;
}

.update-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.update-text {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.5;
}

.vertical-tab {
    position: absolute;
    top: 50%;
    right: -55px;
    transform: translateY(-50%) rotate(90deg);
    background-color: #374151;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 10px;
    font-size: 0.9rem;
    cursor: pointer;
}