/* ========================================
   PROJOST ACADEMY - MAIN STYLESHEET
   Font: Poppins | Semi Bold Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 500;
    background-color: #f5f7fc;
    color: #1a1a2e;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER & NAVIGASI ========== */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 34px;
    height: 34px;
    background: #2c7da0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.logo h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.logo span {
    color: #2c7da0;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2c7da0;
}

.btn-data {
    background: #e8f0fe;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ========== FOOTER ========== */
footer {
    background: #16213e;
    color: #a0b4c8;
    text-align: center;
    padding: 28px 20px;
    margin-top: 50px;
    font-weight: 500;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 10px 26px;
    background: #2c7da0;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.btn:hover {
    background: #1f5e7a;
}

.btn-small {
    padding: 5px 14px;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.btn-edit {
    background: #e67e22;
    color: white;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-edit:hover {
    background: #d35400;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-delete:hover {
    background: #c0392b;
}

.btn-back {
    background: #6c757d;
}

.btn-back:hover {
    background: #5a6268;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, #1e3c5c, #2c7da0);
    color: #fff;
    padding: 50px 40px;
    border-radius: 24px;
    margin: 30px 0;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 24px;
    opacity: 0.92;
    font-weight: 500;
}

/* ========== CARDS ========== */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 12px;
    color: #1e3c5c;
    font-weight: 700;
    font-size: 1.25rem;
}

.card h4 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
}

.card p {
    font-weight: 500;
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ========== GRIDS ========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44,125,160,0.1);
}

/* ========== TABLES (BACKEND) ========== */
.table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.data-table th {
    background: #2c7da0;
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
}

.data-table td {
    font-weight: 500;
    color: #334155;
    font-size: 0.85rem;
}

.data-table tr:hover {
    background: #f8fafc;
}

.action-links {
    display: flex;
    gap: 10px;
}

.empty-data {
    text-align: center;
    padding: 40px;
    color: #888;
}

.badge {
    background: #e8f0fe;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* ========== PAGE TITLE ========== */
.page-title {
    font-size: 1.7rem;
    margin: 28px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2c7da0;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.icon-blue {
    color: #2c7da0;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 22px;
}

.info-item i {
    width: 32px;
    color: #2c7da0;
    font-size: 1.1rem;
}

.info-item strong {
    font-weight: 700;
    display: inline-block;
    margin-left: 5px;
}

.info-item div {
    margin-top: 5px;
    font-weight: 500;
    padding-left: 32px;
    color: #4a5568;
    font-size: 0.9rem;
}

/* ========== PROGRAM CARDS ========== */
.program-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.program-card i {
    font-size: 32px;
    color: #2c7da0;
    margin-bottom: 14px;
}

.program-card h4 {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.duration {
    color: #e67e22;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 8px 0;
}

.program-card p:last-child {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.8rem;
}

/* ========== MAP BOX ========== */
.map-box {
    margin-top: 25px;
    border-radius: 20px;
    overflow: hidden;
    height: 260px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========== PROFIL PAGE ========== */
.profil-list {
    margin-left: 20px;
    line-height: 1.8;
    font-weight: 500;
    color: #4a5568;
}

.struktur-list {
    list-style: none;
}

.struktur-list li {
    margin-bottom: 12px;
    font-weight: 500;
}

.struktur-list i {
    width: 28px;
    color: #2c7da0;
}

/* ========== TOAST NOTIFICATION ========== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #27ae60;
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.toast.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== BACKEND CONTAINER ========== */
.backend-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
}

.backend-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1e3c5c;
    font-weight: 700;
}

.backend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

/* ========== EDIT FORM BACKEND ========== */
.edit-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.edit-container h2 {
    margin-bottom: 20px;
    color: #1e3c5c;
    font-weight: 700;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .grid-2, .grid-3, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 35px 25px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .backend-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 8px 20px;
    }
}