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

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

:root {
    --primary-pink: #FFB6C1;
    --primary-pink-dark: #FF99AA;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    --text-black: #1A1A1A;
    --text-gray: #4A4A4A;
    --text-light: #999999;
    --border-color: #E0E0E0;
    --sidebar-width: 260px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gray);
    color: var(--text-black);
    line-height: 1.6;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-gray) 100%);
    padding: 20px;
}

.login-box {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-box h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 10px;
}

.login-box p {
    color: var(--text-gray);
    margin-bottom: 35px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.1);
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-pink);
    color: var(--text-black);
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-pink-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-gray);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    background: #FF6B6B;
    color: white;
}

.btn-danger:hover {
    background: #FF5252;
}

.btn-success {
    background: #51CF66;
    color: white;
}

.btn-success:hover {
    background: #40C057;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Layout with Sidebar */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-black);
}

.sidebar-header p {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: block;
    padding: 14px 25px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--bg-gray);
    color: var(--text-black);
    border-left-color: var(--primary-pink);
}

.menu-item.active {
    background: rgba(255, 182, 193, 0.1);
    color: var(--text-black);
    border-left-color: var(--primary-pink);
}

.menu-item i {
    margin-right: 12px;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--bg-white);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-gray);
    font-size: 14px;
}

.card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-black);
}

.card-body {
    padding: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-pink);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-card h4 {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 5px;
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-light);
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

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

table thead {
    background: var(--bg-gray);
}

table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-black);
}

table tr:hover {
    background: var(--bg-gray);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(81, 207, 102, 0.1);
    color: #40C057;
}

.badge-danger {
    background: rgba(255, 107, 107, 0.1);
    color: #FF5252;
}

.badge-warning {
    background: rgba(255, 184, 0, 0.1);
    color: #FF9800;
}

.badge-info {
    background: rgba(66, 153, 225, 0.1);
    color: #4299E1;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A4A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(81, 207, 102, 0.1);
    color: #40C057;
    border-left: 4px solid #40C057;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    color: #FF5252;
    border-left: 4px solid #FF5252;
}

.alert-warning {
    background: rgba(255, 184, 0, 0.1);
    color: #FF9800;
    border-left: 4px solid #FF9800;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-responsive {
        overflow-x: scroll;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-black);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}
