/* =======================================================
   CSS KHUSUS AUTHOR LAYOUT HEADER (RESPONSIF)
   ======================================================= */
.author-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 0;
}

.author-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.author-logo {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
}

.author-logo span {
    color: #4f46e5;
}

.author-nav {
    display: flex;
    gap: 24px;
}

.author-nav a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.author-nav a:hover {
    color: #4f46e5;
}

/* Tombol Hamburger Menu Mobile */
.author-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1e293b;
    padding: 0;
}

/* Menu Navigasi Samping untuk Mobile */
.author-mobile-menu {
    display: none;
    position: fixed;
    top: 57px; /* Menyesuaikan tinggi header */
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    box-sizing: border-box;
    z-index: 45;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.author-mobile-menu a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

/* Class pembantu untuk memunculkan menu mobile lewat JS */
.author-mobile-menu.show-menu {
    display: flex;
}

/* RESPONSIVITAS (Untuk Layar HP / Tablet) */
@media (max-width: 768px) {
    .author-nav {
        display: none; /* Sembunyikan menu desktop utama di HP */
    }
    .author-menu-btn {
        display: block; /* Munculkan tombol hamburger di HP */
    }
}
/* =======================================================
   CSS UTAMA AUTHOR HOMEPAGE CONTAINER & GRID CARD
   ======================================================= */
.author-dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.author-welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.author-welcome-section h1 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 800;
}

.author-welcome-section h1 span {
    color: #4f46e5;
}

.author-welcome-section p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Tata Letak Grid yang Otomatis Responsif */
.author-grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Desain Komponen Card Interaktif */
.author-menu-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

/* Efek Hover saat Card Disentuh/Didekati Mouse */
.author-menu-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.08);
}

/* Lingkaran Pembungkus Icon */
.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.bg-purple { background-color: #f5f3ff; color: #6d28d9; }
.bg-amber { background-color: #fffbeb; color: #b45309; }
.bg-emerald { background-color: #ecfdf5; color: #047857; }

.author-menu-card h3 {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.author-menu-card p {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1; /* Membuat tinggi teks seimbang otomatis */
}

.card-action-text {
    font-size: 13px;
    font-weight: 700;
    color: #4f46e5;
    transition: color 0.2s ease;
}

.author-menu-card:hover .card-action-text {
    color: #312e81;
}

/* RESPONSIVITAS TAMBAHAN UNTUK LAYAR HANDPHONE KECIL */
@media (max-width: 480px) {
    .author-dashboard-container {
        padding: 15px;
    }
    .author-welcome-section h1 {
        font-size: 24px;
    }
    .author-menu-card {
        padding: 20px;
    }
}
/* =======================================================
   CSS KHUSUS AUTHOR LAYOUT FOOTER (RESPONSIF)
   ======================================================= */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 24px 0;
    margin-top: 60px;
    width: 100%;
    box-sizing: border-box;
}

.footer .copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Mengatur transisi halus jika ada link di dalam footer author nantinya */
.footer .copyright a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer .copyright a:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* RESPONSIVITAS TIMBAHAN UNTUK LAYAR HANDPHONE */
@media (max-width: 480px) {
    .footer {
        padding: 20px 0;
        margin-top: 40px;
    }
    .footer .copyright {
        font-size: 12px;
        padding: 0 15px;
    }
}