/* public/css/style.css */
:root {
    /* Premium Light Theme Colors */
    --primary: #4F46E5; /* Indigo */
    --primary-hover: #4338CA;
    --secondary: #10B981; /* Emerald */
    --background: #F3F4F6; /* Cool Gray background */
    --surface: #FFFFFF;
    --surface-hover: #F9FAFB;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    
    /* Layout */
    --sidebar-width: 270px;
    --header-height: 70px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.sidebar-nav {
    padding: 1.5rem 1rem;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--primary);
    color: white;
}

.nav-item i {
    width: 24px;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Main Content */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.top-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.user-profile:hover {
    background-color: var(--surface-hover);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Content Area */
.content-area {
    padding: 2rem;
    flex: 1;
}

/* Components */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-title {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

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

th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background-color: var(--surface-hover);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.875rem;
    vertical-align: middle;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

th.text-right, td.text-right {
    text-align: right !important;
}

th.text-center, td.text-center {
    text-align: center !important;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--surface-hover);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background-color: #D1FAE5; color: #065F46; }
.badge-warning { background-color: #FEF3C7; color: #92400E; }
.badge-danger { background-color: #FEE2E2; color: #991B1B; }
.badge-primary { background-color: #E0E7FF; color: #3730A3; }

/* Forms & Buttons */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--surface);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

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

.btn-outline {
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background-color: var(--surface-hover);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background-color: #059669; /* Emerald 600 */
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.btn-soft-success {
    background-color: #D1FAE5;
    color: #065F46;
}
.btn-soft-success:hover {
    background-color: #A7F3D0;
    color: #047857;
}

.btn-soft-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}
.btn-soft-danger:hover {
    background-color: #FECACA;
    color: #7F1D1D;
}

.btn-soft-primary {
    background-color: #E0E7FF;
    color: #3730A3;
}
.btn-soft-primary:hover {
    background-color: #C7D2FE;
    color: #312E81;
}

/* Premium Pagination Styling */
.pagination-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin-top: 2.5rem !important;
    padding: 0.5rem !important;
    width: 100% !important;
}

.pagination {
    display: flex !important;
    list-style: none !important;
    gap: 0.4rem !important;
    padding: 0.4rem !important;
    margin: 0 !important;
    background: white !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-sm) !important;
    align-items: center !important;
}

.pagination li {
    display: flex !important;
}

.pagination li .page-link, 
.pagination li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 1rem !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.pagination li .page-link:hover {
    background-color: #f1f5f9 !important;
    color: var(--primary) !important;
    transform: translateY(-1px) !important;
}

.pagination li.active .page-link,
.pagination li.active span {
    background-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3) !important;
}

.pagination li.disabled .page-link,
.pagination li.disabled span {
    color: #cbd5e1 !important;
    background-color: transparent !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.pagination svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
}

/* Simple Grid Utilities */
.gap-6 { gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: 1fr; }
.text-success { color: #10B981 !important; }
