/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e0f2e0 0%, #c8e6c9 100%);
    min-height: 100vh;
    color: #1c3e1c;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(46, 125, 50, 0.4);
}
.btn-secondary {
    background: rgba(255,255,255,0.9);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    backdrop-filter: blur(4px);
}
.btn-secondary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.btn-block {
    width: 100%;
    display: flex;
}
.btn-logout {
    background: rgba(255,235,238,0.9);
    color: #c62828;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s;
}
.btn-logout:hover {
    background: #ffcdd2;
    transform: translateY(-2px);
}

/* ===== LANDING PAGE ===== */
.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}
.landing-container {
    max-width: 500px;
    width: 90%;
    text-align: center;
}
.landing-header {
    margin-bottom: 2rem;
}
.landing-logo {
    height: 80px;
    margin: 0 12px;
    background: white;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.landing-logo:hover {
    transform: scale(1.05);
}
.landing-header h1 {
    font-size: 3rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}
.landing-header p {
    color: #2e7d32;
    font-size: 1.1rem;
}
.landing-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 40px 30px;
    box-shadow: 0 30px 50px rgba(46, 125, 50, 0.2);
    border: 1px solid rgba(165, 214, 167, 0.6);
}
.landing-card h2 {
    color: #1b5e20;
    margin-bottom: 12px;
}
.landing-card p {
    color: #2e5530;
    margin-bottom: 30px;
}
.landing-buttons .btn {
    margin: 12px 0;
}
.landing-footer {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #2e5530;
    opacity: 0.8;
}

/* ===== LOGIN / REGISTER ===== */
.login-page, .register-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2e0 0%, #c8e6c9 100%);
}
.login-container, .register-container {
    max-width: 480px;
    width: 90%;
}
.login-card, .register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 45px 35px;
    box-shadow: 0 25px 45px rgba(46, 125, 50, 0.2);
    border: 1px solid #c8e6c9;
}
.login-header, .register-header {
    text-align: center;
    margin-bottom: 35px;
}
.login-header img, .register-header img {
    height: 65px;
    margin-bottom: 15px;
}
.login-header h2, .register-header h2 {
    color: #1b5e20;
    margin-bottom: 5px;
}
.login-header p, .register-header p {
    color: #558b2f;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1b5e20;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #d0e8cf;
    border-radius: 28px;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
}
.alert {
    padding: 14px 20px;
    border-radius: 28px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 5px solid #c62828;
}
.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 5px solid #2e7d32;
}

/* ===== HEADER INTERNAL ===== */
.header {
    background: white;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-container img {
    height: 45px;
}
.app-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1b5e20;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.user-info span {
    font-weight: 500;
    color: #2e7d32;
}
.container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 25px;
}
.card {
    background: white;
    border-radius: 32px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-3px);
}
.card h3 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c8e6c9;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}
.stat-card {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    padding: 25px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 12px 20px rgba(46, 125, 50, 0.3);
}
.stat-card h3 {
    color: white;
    border: none;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.stat-card p {
    font-size: 2.5rem;
    font-weight: 800;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
table th {
    text-align: left;
    padding: 14px 12px;
    background: #f1f8e9;
    color: #1b5e20;
    font-weight: 600;
    border-bottom: 2px solid #c8e6c9;
}
table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e8f0e8;
}
table tr:hover {
    background: #fafefa;
}
.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-pending { background: #fff8e1; color: #f57c00; }
.status-diproses { background: #e1f5fe; color: #0288d1; }
.status-ditindaklanjuti { background: #e8f5e9; color: #2e7d32; }
.status-selesai { background: #eceff1; color: #455a64; }
.status-ditolak { background: #ffebee; color: #d32f2f; }

/* ===== BUTTON ICONS ===== */
.btn-edit, .btn-delete, .btn-view, .btn-approve, .btn-reject, .btn-print, .btn-wa {
    margin: 0 4px;
    font-size: 1.1rem;
    transition: 0.2s;
}
.btn-edit { color: #2c6e9e; }
.btn-delete { color: #d32f2f; }
.btn-view { color: #2e7d32; }
.btn-approve { color: #2e7d32; }
.btn-reject { color: #d32f2f; }
.btn-print { color: #6d4c41; }
.btn-wa { color: #25D366; }
.btn-edit:hover, .btn-delete:hover, .btn-view:hover { transform: scale(1.1); }

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px;
    color: #2e5530;
    background: rgba(255,255,255,0.5);
    margin-top: 40px;
    font-size: 0.85rem;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropbtn {
    background: none;
    border: none;
    color: #2e7d32;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    padding: 8px 12px;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 12px;
    right: 0;
}
.dropdown-content a {
    color: #1b5e20;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-radius: 8px;
}
.dropdown-content a:hover {
    background-color: #e8f5e9;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .landing-header h1 {
        font-size: 2rem;
    }
    .login-card, .register-card {
        padding: 30px 20px;
    }
}