
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f4f6f9;
}

/* TOP NAV */
.top-navbar {
    background: #ffffff;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    justify-content: space-between;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #27d3a6, #5b8cff);
    border-radius: 8px;
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e1e2f;
}

.version {
    background: #e9ecff;
    color: #5b8cff;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Search */
.search-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-box {
    width: 420px;
    background: #f4f6f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    border: 1px solid #e2e6ef;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    outline: none;
}

.shortcut {
    background: #1e1e2f;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Icons */
.top-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.icon-btn:hover {
    background: #e9edf5;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    color: #5b657a;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dce3f2;
}

/* SECOND NAV */
.sub-navbar {
    background: #f8fafc;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 40px;
    border-top: 1px solid #e4e7ee;
    border-bottom: 1px solid #e4e7ee;
}

.sub-navbar a {
    text-decoration: none;
    color: #5b657a;
    font-weight: 500;
    font-size: 15px;
    transition: 0.2s;
}

.sub-navbar a:hover {
    color: #1e1e2f;
}

.sub-navbar a.active {
    color: #5b8cff;
    border-bottom: 3px solid #5b8cff;
    padding-bottom: 16px;
}


.content-wrapper {
    margin: 30px;
    background: #f2f4f7;
    padding: 25px;
    border-radius: 14px;
}

/* Top Buttons */
.top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.action-btn {
    background: #cfe8f6;
    color: #0d6efd;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
}

.action-btn:hover {
    background: #b7dcf3;
}

/* Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 15px;
}

.table-controls select,
.table-controls input {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #dcdfe6;
    margin: 0 6px;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: #e9edf2;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #edf0f5;
}

th {
    font-weight: 600;
}

tbody tr:hover {
    background: #f8fafc;
}

/* Buttons inside table */
.view-btn {
    background: #e3f2fd;
    color: #0d6efd;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.edit-btn {
    background: #d1e7dd;
    color: #0f5132;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    margin-right: 6px;
    cursor: pointer;
    font-size: 13px;
}

.delete-btn {
    background: #f8d7da;
    color: #842029;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    align-items: center;
    font-size: 14px;
}

.pagination button {
    background: white;
    border: 1px solid #dcdfe6;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 8px;
    cursor: pointer;
}

.pagination .active-page {
    background: #2f80ed;
    color: white;
    border: none;
}


.la-card {
    margin: 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.la-card-header {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 16px;
    background: #f7f8fa;
    border-bottom: 1px solid #e4e7ec;
}

.la-card-body {
    padding: 30px;
}

.la-row {
    display: flex;
    gap: 40px;
}

.la-col {
    flex: 1;
}

.la-form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.la-form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #344054;
}

.la-form-group input,
.la-form-group textarea {
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.la-form-group textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

.la-form-group input:focus,
.la-form-group textarea:focus {
    outline: none;
    border-color: #1e9bd7;
    box-shadow: 0 0 0 3px rgba(30,155,215,0.1);
}

.full-width {
    margin-top: 10px;
}

.la-buttons {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

.la-btn-primary {
    background: #1e9bd7;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.la-btn-primary:hover {
    background: #168ac2;
}

.la-btn-secondary {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.la-btn-secondary:hover {
    background: #f2f4f7;
}

/* ================================
   Clean Popup Modal
================================ */

.la-popup .modal-content {
    border-radius: 18px;
    border: none;
    padding: 30px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    animation: popupScale 0.25s ease-out;
}

/* Remove Bootstrap padding */
.la-popup .modal-dialog {
    max-width: 420px;
}

/* Close button (top right) */
.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #777;
    transition: 0.2s;
}

.popup-close:hover {
    color: #000;
}

/* Body */
.popup-body {
    text-align: left;
}

.popup-title {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 18px;
}

#modal-comment {
    font-size: 15px;
    margin-bottom: 12px;
    color: #333;
}

#modal-info {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

/* Footer */
.popup-footer {
    text-align: right;
}

/* Button */
.la-btn-primary {
    background: #1e9bd7;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.la-btn-primary:hover {
    background: #168ac2;
    transform: translateY(-1px);
}

/* Animation */
@keyframes popupScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* =====================================
   Popup Style (Keep Bootstrap Logic)
===================================== */

.la-modal .modal-dialog {
    max-width: 450px; /* smaller popup size */
}

.la-modal .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    animation: popupScale 0.25s ease-out;
    overflow: hidden;
}

/* Header */
.la-modal .modal-header {
    border-bottom: none;
    padding: 18px 22px;
}

.la-modal .modal-title {
    font-weight: 600;
    font-size: 18px;
}

/* Body */
.la-modal .modal-body {
    padding: 20px 22px;
    font-size: 14px;
    color: #333;
}

/* Footer */
.la-modal .modal-footer {
    border-top: none;
    padding: 16px 22px;
}

/* Smooth scale animation */
@keyframes popupScale {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Custom button */
.la-btn-primary {
    background: #1e9bd7;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.la-btn-primary:hover {
    background: #168ac2;
    transform: translateY(-1px);
}

/* ================= LOGIN PAGE SPECIAL STYLE ================= */

.login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #5b8cff, #27d3a6);
}

.login-card {
    width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    padding: 40px;
}

.login-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1e1e2f;
}

.login-card .la-form-group {
    margin-bottom: 20px;
}

.login-card .la-btn-primary {
    width: 100%;
    margin-top: 10px;
    font-size: 15px;
    padding: 12px;
    border-radius: 12px;
}


/* ================= WELCOME PAGE STYLE ================= */

.welcome-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #5b8cff, #27d3a6);
    margin: 0;
}

.welcome-card {
    width: 500px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    padding: 60px 40px;
}

.welcome-title {
    font-size: 38px;
    font-weight: 600;
    color: #1e1e2f;
    margin-bottom: 15px;
}

.welcome-subtitle {
    font-size: 15px;
    color: #667085;
    margin-bottom: 40px;
}

.welcome-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 14px;
    background: #1e9bd7;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease;
}

.welcome-btn:hover {
    background: #168ac2;
    transform: translateY(-2px);
}


/* ============================= */
/* ADMIN DASHBOARD DECORATION   */
/* ============================= */

.adm-dashboard-wrapper {
    margin: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Welcome Banner */
.adm-banner {
    background: linear-gradient(135deg, #5b8cff, #27d3a6);
    border-radius: 16px;
    padding: 35px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    animation: admFadeSlideDown 0.7s ease forwards;
}

.adm-banner h2 {
    font-size: 24px;
    font-weight: 600;
}

.adm-banner p {
    margin-top: 6px;
    opacity: 0.9;
    font-size: 14px;
}

.adm-banner-stats {
    font-size: 42px;
    font-weight: 700;
}

/* Analytics Cards */
.adm-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.adm-analytics-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    animation: admFadeUp 0.8s ease forwards;
    opacity: 0;
}

.adm-analytics-card:hover {
    transform: translateY(-6px);
}

.adm-analytics-card h4 {
    font-size: 14px;
    color: #667085;
    margin-bottom: 8px;
}

.adm-analytics-card .adm-number {
    font-size: 26px;
    font-weight: 600;
    color: #1e1e2f;
}

.adm-analytics-card .adm-growth {
    margin-top: 6px;
    font-size: 13px;
    color: #12b76a;
}

/* Widget Section */
.adm-widget-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.adm-widget-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    animation: admFadeUp 1s ease forwards;
    opacity: 0;
}

.adm-widget-card h3 {
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 600;
}

/* Activity List */
.adm-activity-item {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f5;
    font-size: 14px;
    color: #475467;
}

.adm-activity-item:last-child {
    border-bottom: none;
}

/* Chart Placeholder */
.adm-chart-placeholder {
    height: 240px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f2f4f7, #e9edf5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 14px;
}

/* Animations */
@keyframes admFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes admFadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top Navbar */
.top-navbar {
    animation: slideDownSoft 0.6s ease forwards;
}

/* Sub Navbar */
.sub-navbar {
    animation: slideDownSoft 0.8s ease forwards;
}

/* Content wrapper */
.content-wrapper {
    animation: fadeUpSoft 0.7s ease forwards;
}

/* Cards */
.la-card,
.login-card,
.welcome-card {
    animation: fadeUpSoft 0.8s ease forwards;
}

/* Tables */
table {
    animation: fadeUpSoft 0.9s ease forwards;
}

/* Buttons (subtle entrance only) */
.action-btn,
.la-btn-primary,
.la-btn-secondary,
.view-btn,
.edit-btn,
.delete-btn,
.welcome-btn {
    animation: fadeInSoft 1s ease forwards;
}

/* Form groups stagger effect */
.la-form-group {
    opacity: 0;
    animation: fadeUpSoft 0.6s ease forwards;
}

.la-form-group:nth-child(1) { animation-delay: 0.1s; }
.la-form-group:nth-child(2) { animation-delay: 0.2s; }
.la-form-group:nth-child(3) { animation-delay: 0.3s; }
.la-form-group:nth-child(4) { animation-delay: 0.4s; }
.la-form-group:nth-child(5) { animation-delay: 0.5s; }

/* Table rows stagger */
tbody tr {
    opacity: 0;
    animation: fadeUpSoft 0.5s ease forwards;
}

tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.1s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.2s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }
tbody tr:nth-child(6) { animation-delay: 0.3s; }
tbody tr:nth-child(7) { animation-delay: 0.35s; }

/* Login + Welcome Titles */
.login-title,
.welcome-title {
    animation: fadeDownSoft 0.7s ease forwards;
}

/* ==========================================
   KEYFRAMES
========================================== */

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUpSoft {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDownSoft {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownSoft {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSoft {
    from { opacity: 0; }
    to { opacity: 1; }
}
