/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #eaf7e1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 12px;
}

.phone-mock {
    max-width: 420px;
    width: 100%;
    background: #f6fff0;
    border-radius: 38px;
    box-shadow: 0 20px 40px rgba(0, 40, 0, 0.25);
    overflow: hidden;
    position: relative;
    min-height: 650px;
    transition: all 0.2s;
}

/* Login Page */
#loginPage, #registerPage {
    padding: 40px 24px 30px;
    display: flex;
    flex-direction: column;
    min-height: 650px;
}

#loginPage .logo-area, #registerPage .logo-area {
    text-align: center;
    margin-bottom: 30px;
}

#loginPage .logo-icon {
    background: #1f5e3a;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
}

#loginPage .logo-text {
    font-weight: 700;
    font-size: 26px;
    color: #1f3b2a;
    letter-spacing: -0.5px;
}

#loginPage .logo-text span {
    color: #3b8c5e;
}

#loginPage .subtitle {
    text-align: center;
    color: #5d7a67;
    font-size: 14px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1f3b2a;
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dce8e0;
    border-radius: 14px;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #1f5e3a;
    box-shadow: 0 0 0 3px rgba(31, 94, 58, 0.15);
}

.form-group input::placeholder {
    color: #a8bdb0;
}

.btn-login, .btn-register, .btn-forgot {
    width: 100%;
    padding: 16px;
    background: #1f5e3a;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-login:hover, .btn-register:hover, .btn-forgot:hover {
    background: #174a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 94, 58, 0.3);
}

.btn-login:active, .btn-register:active, .btn-forgot:active {
    transform: scale(0.97);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #5d7a67;
}

.login-footer a {
    color: #1f5e3a;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.login-footer a:hover {
    text-decoration: underline;
    color: #174a2e;
}

.login-footer .separator-dot {
    color: #b8d0c0;
    font-weight: 300;
    margin: 0 6px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8aa899;
    font-size: 18px;
    transition: all 0.2s;
    background: none;
    border: none;
    padding: 4px;
}

.password-toggle:hover {
    color: #1f5e3a;
}

/* Back link for register */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f5e3a;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.back-link:hover {
    opacity: 0.7;
}

.back-link i {
    font-size: 16px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background: #e8f5e9;
    color: #1f5e3a;
    border: 1px solid #c8e6c9;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f3b2a;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 999;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Responsive */
@media (max-width: 420px) {
    .phone-mock {
        border-radius: 30px;
        min-height: 600px;
    }
    #loginPage, #registerPage {
        min-height: 600px;
        padding: 30px 18px 20px;
    }
    #loginPage .logo-icon {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }
    #loginPage .logo-text {
        font-size: 22px;
    }
    .form-group input {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* Dashboard styles */
.dashboard-container {
    padding: 18px 16px 8px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon-small {
    background: #1f5e3a;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text-small {
    font-weight: 700;
    font-size: 20px;
    color: #1f3b2a;
    letter-spacing: -0.3px;
}

.logo-text-small span {
    color: #3b8c5e;
}

.header-actions {
    display: flex;
    gap: 12px;
    color: #2d5a3b;
    font-size: 20px;
}

.header-actions i {
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px;
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(150,200,150,0.2);
}

.stat-card .number {
    font-size: 28px;
    font-weight: 700;
    color: #1f5e3a;
}

.stat-card .label {
    font-size: 12px;
    color: #5d7a67;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    background: white;
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 30, 0, 0.05);
    border: 1px solid rgba(150, 200, 150, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
}

.list-item i {
    font-size: 20px;
    color: #1f5e3a;
    width: 36px;
    text-align: center;
}

.list-item .info {
    flex: 1;
}

.list-item .info h4 {
    font-size: 14px;
    font-weight: 600;
}

.list-item .info p {
    font-size: 12px;
    color: #5d7a67;
}

.status {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.status.active {
    background: #daf0de;
    color: #1f5e3a;
}

.status.pending {
    background: #fdf6e3;
    color: #b8860b;
}

.status.done {
    background: #e8f0fe;
    color: #2c5f8a;
}

.status.warning {
    background: #ffebee;
    color: #c62828;
}

/* assets/css/style.css - Bottom Menu Modern */

/* ===== BODY & PHONE MOCK ===== */
body {
    background: #eaf7e1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 12px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.phone-mock {
    max-width: 420px;
    width: 100%;
    background: #f6fff0;
    border-radius: 38px;
    box-shadow: 0 20px 40px rgba(0, 40, 0, 0.25);
    overflow: hidden;
    position: relative;
    height: 95vh;
    height: 95dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: 75px;
}

/* ===== CONTENT AREA ===== */
.dashboard-container {
    flex: 1;
    padding: 18px 16px 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: calc(100% - 75px);
}

/* ===== BOTTOM MENU MODERN ===== */
.bottom-menu {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 10px;
    border-radius: 0 0 38px 38px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    height: 72px;
    flex-shrink: 0;
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8a9e93;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 12px;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    touch-action: manipulation;
    transition: all 0.2s ease;
    min-width: 56px;
    gap: 2px;
    border: none;
    background: transparent;
    border-radius: 12px;
}

.bottom-item i {
    font-size: 22px;
    color: #8a9e93;
    transition: all 0.2s ease;
    margin-bottom: 1px;
}

.bottom-item span {
    font-size: 10px;
    color: #8a9e93;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

/* Active state */
.bottom-item.active i {
    color: #1f5e3a;
}

.bottom-item.active span {
    color: #1f5e3a;
    font-weight: 600;
}

.bottom-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #1f5e3a;
    border-radius: 0 0 4px 4px;
}

/* Hover & Active touch feedback */
.bottom-item:active {
    transform: scale(0.92);
}

/* Icon hover */
.bottom-item:not(.active):hover i {
    color: #4a7a5a;
    transform: translateY(-1px);
}

/* Badge notifikasi di bottom menu */
.bottom-item .badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #e53935;
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 420px) {
    .phone-mock {
        border-radius: 30px;
        height: 100vh;
        height: 100dvh;
        padding-bottom: 65px;
    }
    
    .dashboard-container {
        height: calc(100% - 65px);
        padding: 14px 12px 8px;
    }
    
    .bottom-menu {
        border-radius: 0 0 30px 30px;
        height: 62px;
        padding: 4px 0 8px;
    }
    
    .bottom-item {
        min-width: 44px;
        padding: 2px 8px;
    }
    
    .bottom-item i {
        font-size: 20px;
    }
    
    .bottom-item span {
        font-size: 9px;
    }
    
    .bottom-item.active::after {
        width: 16px;
        height: 2px;
        top: 0;
    }
}

@media (max-width: 360px) {
    .bottom-item {
        min-width: 36px;
        padding: 2px 4px;
    }
    
    .bottom-item i {
        font-size: 17px;
    }
    
    .bottom-item span {
        font-size: 8px;
    }
    
    .bottom-item .badge {
        font-size: 7px;
        min-width: 14px;
        height: 14px;
        top: 0;
        right: 0;
    }


/* Admin Table */
.table-container {
    overflow-x: auto;
    margin: 16px 0;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-container table th {
    background: #1f5e3a;
    color: white;
    padding: 10px 12px;
    text-align: left;
}

.table-container table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8f0ec;
}

.table-container table tr:hover {
    background: #f0f7f2;
}

.btn-action {
    padding: 4px 12px;
    border-radius: 12px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit {
    background: #e3f2fd;
    color: #1565c0;
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.btn-add {
    background: #1f5e3a;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.btn-add:hover {
    background: #174a2e;
}

.btn-logout {
    background: #c62828;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 12px;
}

.btn-logout:hover {
    background: #b71c1c;
}