/* ===============================
GLOBAL
=============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f1f5f9;
    color: #333;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===============================
LAYOUT
=============================== */

.layout {
    display: flex;
    min-height: 100vh;
}

/* ===============================
SIDEBAR
=============================== */

.sidebar {
    width: 230px;
    background: #1e293b;
    color: white;
    padding: 20px;
    transition: all 0.3s ease;
}

.sidebar.sidebar-hide {
    margin-left: -230px;
}

.sidebar .logo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.sidebar ul li a:hover {
    background: #334155;
}

/* ===============================
SIDEBAR ACTIVE MENU
=============================== */

.sidebar ul li a.active {
    background: #334155;
    position: relative;
}

.sidebar ul li a.active::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    height: 100%;
    width: 4px;
    background: #07ece9;
    border-radius: 2px;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

p {
    line-height: 1.6;
}

.actions button{
    margin-right:6px;
}

.btn-view{
    background:#3b82f6;
    color:white;
    border:none;
    padding:6px 10px;
    border-radius:6px;
}

.user-profile{
    width:360px;
}

.profile-header{
    text-align:center;
    margin-bottom:20px;
}

.profile-photo{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:10px;
}

.profile-info{
    margin-top:10px;
}

.info-row{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px solid #eee;
}

.action-buttons{
    display:flex;
    gap:8px;
}

.btn-action{
    display:flex;
    align-items:center;
    gap:6px;
    border:none;
    padding:6px 10px;
    font-size:13px;
    border-radius:8px;
    cursor:pointer;
    font-weight:500;
    transition:all .2s ease;
}

.btn-action i{
    font-size:12px;
}

/* VIEW */

.btn-view{
    background:#eff6ff;
    color:#2563eb;
}

.btn-view:hover{
    background:#2563eb;
    color:white;
}

/* EDIT */

.btn-edit{
    background:#ecfdf5;
    color:#059669;
}

.btn-edit:hover{
    background:#059669;
    color:white;
}

/* DELETE */

.btn-delete{
    background:#fef2f2;
    color:#dc2626;
}

.btn-delete:hover{
    background:#dc2626;
    color:white;
}

/* ===============================
LOGOUT BUTTON
=============================== */

.logout-form {
    width: 100%;
    margin: 0;
}

.logout-btn {
    all: unset;

    color: white;
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;
    width: 100%;

    border-radius: 6px;
    cursor: pointer;

    font-size: 14px;
}

.logout-btn:hover {
    background: #334155;
}

/* ===============================
MAIN
=============================== */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* ===============================
NAVBAR
=============================== */

.navbar {
    background: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.menu-btn {
    font-size: 20px;
    cursor: pointer;
}

/* ===============================
CONTENT
=============================== */

.content {
    padding: 30px;
}

/* ===============================
CARD
=============================== */

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    display: block;
    margin: 0 auto 15px;
}

/* ===============================
BUTTON
=============================== */

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-edit {
    color: #f59e0b;
    margin-right: 10px;
    text-decoration: none;
}

.btn-delete {
    color: #ef4444;
    cursor: pointer;
    text-decoration: none;
}

/* ===============================
MODAL
=============================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.4);

    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-content {

    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 400px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

}

/* ===============================
MODAL BUTTONS
=============================== */

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* UPDATE BUTTON */

.btn-update {

    background: #2563eb;
    color: white;

    border: none;

    padding: 10px 18px;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 8px;

    cursor: pointer;

    transition: 0.2s;

}

.btn-update:hover {

    background: #1d4ed8;
    transform: translateY(-1px);

}

/* CANCEL BUTTON */

.btn-cancel {

    background: #f1f5f9;
    color: #334155;

    border: 1px solid #e2e8f0;

    padding: 10px 18px;
    border-radius: 6px;

    font-size: 14px;

    cursor: pointer;

    transition: 0.2s;

}

.btn-cancel:hover {

    background: #e2e8f0;

}

/* ===============================
DASHBOARD GRID
=============================== */

.dashboard-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;

    margin-bottom: 30px;

}

/* ===============================
DASHBOARD CARD
=============================== */

.dashboard-card {

    background: white;
    padding: 20px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    gap: 20px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

    transition: 0.2s;

}

.dashboard-card:hover {

    transform: translateY(-4px);

}

/* ICON */

.card-icon {

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 20px;
    color: white;

}

/* COLORS */

.dashboard-card.blue .card-icon {
    background: #3b82f6;
}

.dashboard-card.green .card-icon {
    background: #22c55e;
}

.dashboard-card.orange .card-icon {
    background: #f59e0b;
}

.dashboard-card.purple .card-icon {
    background: #8b5cf6;
}

/* TEXT */

.card-title {

    font-size: 14px;
    color: #64748b;

}

.dashboard-card h2 {

    font-size: 28px;
    margin-top: 5px;

}

/* ===============================
BOTTOM SECTION
=============================== */

.dashboard-bottom {

    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;

}

.activity-card {

    background: white;

    padding: 20px;

    border-radius: 12px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

}

/* ===============================
BUTTON ADD ADMIN
=============================== */

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: linear-gradient(135deg, #07ece9, #036979);
    color: white;

    padding: 10px 18px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    transition: all 0.2s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
}

.btn-add i {
    font-size: 13px;
}

/* ===============================
TABLE
=============================== */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #1e293b;
    color: white;
    padding: 12px;
    text-align: left;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.table tr:hover {
    background: #f8fafc;
}

/* ===============================
BADGE
=============================== */

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.badge.success {
    background: #d1fae5;
    color: #065f46;
}

.badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ===============================
DASHBOARD CARDS
=============================== */

.cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card-stat {
    background: white;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.card-stat h3 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 5px;
}

.card-stat p {
    font-size: 28px;
    font-weight: bold;
}

/* ===============================
AUTH PAGE
=============================== */

.auth-container {
    display: flex;
    height: 100vh;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.auth-left-content {
    max-width: 400px;
}

.auth-left h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.auth-left p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.auth-left img {
    width: 100%;
    max-width: 320px;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.auth-card {
    background: white;
    padding: 40px;
    width: 380px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
}

.auth-link {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.auth-link a {
    color: #2563eb;
    text-decoration: none;
}

/* ===============================
RESPONSIVE
=============================== */

@media(max-width:900px) {

    .sidebar {
        position: fixed;
        z-index: 999;
        height: 100vh;
    }

    .sidebar.sidebar-hide {
        margin-left: -230px;
    }

    .auth-left {
        display: none;
    }

    .content {
        padding: 20px;
    }

}
