/* ===========================
   GENERAL STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

.text-pink-dark {
    color: #e91e8c !important;
}

.bg-light-pink {
    background: #f8e8f3 !important;
}

.login-left-bg {
    background: #F791CE;
    padding: 60px;
}

.login-right-bg {
    height: 100vh;
    background: #F791CE;
}

.right-bg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* rata atas–bawah */
    height: 100vh;
    width: 100vh;
    border-radius: 40px 0 0 40px;
    background-color: white;
}


.btn-pink {
    background: #e91e8c;
    color: white;
    border: none;
    transition: .2s;
}

.btn-pink:hover {
    background: #d01a7c;
}

.login-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    height: auto;
}

.login-icon img {
    width: 80vh;
}

.form-control:focus {
    box-shadow: 0 0 0 .15rem rgba(233, 30, 140, .4);
}

/* ===========================
   DASHBOARD LAYOUT
   =========================== */
.dashboard-wrapper {
    min-height: 100vh;
    background: #ffffff;
}

.dashboard-header {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid #e9ecef;
}

.logo {
    font-size: 24px;
    font-weight: 600;
}

.logo-gelatik {
    color: #e91e8c;
}

.logo-mail {
    color: #212529;
}

.logo-icon {
    margin-left: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #212529;
}

.user-icon {
    font-size: 20px;
}

.dashboard-main {
    padding: 40px 60px;
}

/* ===========================
   PAGE HEADER
   =========================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 12px;
}

.btn-import {
    background: #212529;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-add {
    background: white;
    color: #212529;
    border: 1px solid #212529;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
}

/* ===========================
   CONVERTER CARD
   =========================== */
.converter-card {
    background: linear-gradient(135deg, #4a1942 0%, #8b2472 50%, #c92a91 100%);
    border-radius: 24px;
    padding: 30px 60px;
    margin-bottom: 48px;
}

.converter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.converter-info {
    flex: 1;
}

.converter-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.converter-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.converter-actions {
    display: flex;
    gap: 16px;
}

.converter-stats {
    display: flex;
    gap: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    /* padding: 32px; */
    min-width: 220px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-employees {
    background: rgba(234, 134, 194, 0.3);
}

.stat-letters {
    background: rgba(255, 130, 200, 0.3);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 14px;
    color: white;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: white;
}

/* ===========================
   HISTORY SECTION
   =========================== */
.history-section {
    margin-top: 48px;
}

.history-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.history-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #e91e8c;
    gap: 12px;
}

/* ===========================
   HISTORY ALL PAGE
   =========================== */
.page-header-history {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #f8f9fa;
    border-color: #212529;
    gap: 12px;
}

.search-wrapper {
    margin-bottom: 24px;
}

.search-input {
    width: 320px;
    height: 48px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0 20px;
    background: #f8f3f8;
    font-size: 14px;
}

.search-input:focus {
    outline: 2px solid #e91e8c;
    border-color: transparent;
}

/* ===========================
   DATATABLE CUSTOM STYLES
   =========================== */
.table-responsive {
    thead {
        tr {
            th {
                background-color: #FAC2E3;
                color: #6A003F;
                padding: 12px;
            }
        }
    }

    tbody {
        tr {
            td {
                padding: 10px;
                font-size: 14px;
            }
        }
    }
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    background: #d1f4e0;
    color: #0f6938;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */
@media (max-width: 991px) {
    .login-left {
        display: none;
    }

    .converter-content {
        flex-direction: column;
    }

    .converter-stats {
        width: 100%;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 200px;
    }

    .page-header {
        flex-direction: column;
        gap: 20px;
    }

    .page-actions {
        width: 100%;
    }

    .btn-import,
    .btn-add {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .login-form-container {
        padding: 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .converter-card {
        padding: 24px;
    }

    .converter-title {
        font-size: 24px;
    }

    .converter-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-white,
    .btn-outline-white {
        width: 100%;
    }
}
