/* ------------------------------------------------------------------
 * INDIPUMP CRM PREMIUM DESIGN SYSTEM
 * Custom Vanilla CSS for Admin Dashboard and Login Panel
 * ------------------------------------------------------------------ */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    
    --success: #10b981;
    --success-hover: #059669;
    --success-light: #d1fae5;
    
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fee2e2;
    
    --dark: #0f172a;
    --dark-muted: #475569;
    --light-bg: #f8fafc;
    --light-border: #e2e8f0;
    
    --sidebar-bg: #0b0f19;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.5;
    font-size: 0.95rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ------------------------------------------------------------------
 * LOGIN PAGES AESTHETICS (Dark Mode & Glassmorphism)
 * ------------------------------------------------------------------ */

.login-body {
    background: radial-gradient(circle at 10% 20%, rgb(4, 8, 17) 0%, rgb(16, 24, 48) 90.1%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--font-secondary);
}

.login-container {
    width: 100%;
    max-width: 440px;
    perspective: 1000px;
}

.login-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #f8fafc;
    animation: slideUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
    animation: pulse 2s infinite;
}

.logo-icon {
    font-size: 28px;
    color: white;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
}

.login-form label i {
    margin-right: 6px;
    color: #818cf8;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.password-wrapper {
    position: relative;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.toggle-password-btn:hover {
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

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

.btn-secondary:hover {
    background-color: #1e293b;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--light-border);
    color: var(--dark-muted);
}

.btn-outline-secondary:hover {
    background-color: #f1f5f9;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid var(--danger-light);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-login {
    margin-top: 10px;
    height: 48px;
    font-size: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #64748b;
    font-size: 0.8rem;
}

/* ------------------------------------------------------------------
 * ALERTS & NOTIFICATIONS
 * ------------------------------------------------------------------ */

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    animation: fadeIn 0.4s ease;
}

.alert-danger {
    background-color: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-success {
    background-color: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-icon {
    font-size: 1.1rem;
    margin-top: 2px;
}

.alert-list {
    padding-left: 18px;
    margin-top: 6px;
}

.alert-dismissible {
    position: relative;
    justify-content: space-between;
    align-items: center;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.alert-close:hover {
    opacity: 1;
}

/* ------------------------------------------------------------------
 * ADMIN LAYOUT STRUCTURE
 * ------------------------------------------------------------------ */

.admin-body {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-icon {
    font-size: 24px;
    color: #818cf8;
}

.sidebar-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-user {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: rgba(129, 140, 248, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-super {
    background-color: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.badge-operator {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sidebar-menu {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 6px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.sidebar-menu a i {width: 20px; text-align: center;}

.sidebar-menu a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-menu li.active a {
    color: white;
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-logout-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    font-weight: 600;
}

.btn-logout-sidebar:hover {
    background-color: var(--danger);
    color: white;
}

/* Main Content Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
    min-width: 0;
    max-width: calc(100% - 250px);
}

/* Header Styling */
.header {
    height: 60px;
    background-color: white;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--dark-muted);
    cursor: pointer;
    display: none; /* Desktop hidden */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.location-indicator {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-area {
    padding: 20px;
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* ------------------------------------------------------------------
 * DASHBOARD SPECIFIC COMPONENTS
 * ------------------------------------------------------------------ */

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

.welcome-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.welcome-section p {
    color: var(--dark-muted);
    font-size: 0.95rem;
}

.date-display {
    background-color: white;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--light-border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pump Info Banner */
.pump-info-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.banner-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #818cf8;
}

.banner-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner-text p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.banner-text p i {
    color: #818cf8;
    margin-right: 4px;
}

.banner-status-badge {
    margin-left: auto;
    background-color: var(--success);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

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

.stat-card {
    background-color: white;
    border-radius: 20px;
    border: 1px solid var(--light-border);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-card-body {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.i-primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.i-success {
    background-color: var(--success-light);
    color: var(--success);
}

.i-warning {
    background-color: var(--warning-light);
    color: var(--warning);
}

.stat-details h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.stat-details p {
    color: var(--dark-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.stat-card-footer {
    padding: 14px 24px;
    background-color: #f8fafc;
    border-top: 1px solid var(--light-border);
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-card-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card-footer span {
    color: var(--dark-muted);
}

/* Dashboard Information Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.info-card {
    background-color: white;
    border-radius: 20px;
    border: 1px solid var(--light-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.info-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-border);
}

.info-card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

.info-card-body {
    padding: 24px;
}

/* Quick Actions List */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--light-border);
    background-color: #f8fafc;
    color: var(--dark);
}

.action-item:hover {
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
    transform: translateX(4px);
}

.action-icon {
    width: 44px;
    height: 44px;
    background-color: white;
    border: 1px solid var(--light-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    transition: var(--transition);
}

.action-item:hover .action-icon {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.action-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.action-details p {
    color: var(--dark-muted);
    font-size: 0.82rem;
}

/* Roadmap Timeline */
.roadmap-timeline {
    position: relative;
    padding-left: 28px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 9px;
    width: 2px;
    background-color: var(--light-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-status {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-color: white;
    z-index: 2;
}

.timeline-item.done .timeline-status {
    color: var(--success);
}

.timeline-item.pending .timeline-status {
    color: var(--dark-muted);
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.timeline-content p {
    color: var(--dark-muted);
    font-size: 0.85rem;
}

/* ------------------------------------------------------------------
 * TABLE & CRUD VIEWS
 * ------------------------------------------------------------------ */

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

.header-details h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-details p {
    color: var(--dark-muted);
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-muted);
}

.back-link:hover {
    color: var(--primary);
}

/* Filter Card */
.filter-card {
    background-color: white;
    border-radius: 16px;
    border: 1px solid var(--light-border);
    padding: 20px;
    margin-bottom: 24px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-col label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-muted);
}

.filter-col label i {
    margin-right: 4px;
    font-size: 0.9rem;
}

.filter-col input,
.filter-col select {
    padding: 10px 14px;
    border: 1px solid var(--light-border);
    border-radius: 10px;
    font-size: 0.9rem;
    width: 100%;
}

.filter-col input:focus,
.filter-col select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.button-col {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.button-col button,
.button-col a {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-col button {
    flex: 1;
}

/* Data Table Card */
.table-card {
    background-color: white;
    border-radius: 20px;
    border: 1px solid var(--light-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    background-color: #f8fafc;
    padding: 15px 15px;
    font-weight: 600;
    color: var(--dark-muted);
    border-bottom: 1px solid var(--light-border);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px 15px;
    border-bottom: 1px solid var(--light-border);
    color: var(--dark);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.no-data {
    padding: 60px !important;
    color: var(--dark-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 14px;
    opacity: 0.3;
}

.code-badge {
    background-color: #f1f5f9;
    color: var(--dark);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    border: 1px solid var(--light-border);
}

.pump-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.address-text {
    font-size: 0.85rem;
    color: var(--dark-muted);
    display: inline-block;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coord-badge {
    background-color: #f0fdf4;
    color: #166534;
    font-size: 0.78rem;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
}

.status-active {
    background-color: var(--success-light);
    color: var(--success);
}

.status-inactive {
    background-color: var(--danger-light);
    color: var(--danger);
}

.table-actions {
    text-align: center;
    white-space: nowrap;
}

.table-actions .action-btn {
    margin: 0 3px;
    vertical-align: middle;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

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

.delete-btn {
    background-color: var(--danger-light);
    color: var(--danger);
}

.delete-btn:hover {
    background-color: var(--danger);
    color: white;
}

/* User profiles cell */
.user-profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--dark-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.user-fullname {
    font-size: 0.95rem;
    font-weight: 600;
}

.global-badge {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.station-link-badge {
    background-color: #faf5ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ------------------------------------------------------------------
 * FORM PAGES & CONTROLS
 * ------------------------------------------------------------------ */

.form-card {
    background-color: white;
    border-radius: 20px;
    border: 1px solid var(--light-border);
    box-shadow: var(--card-shadow);
    padding: 40px;
}

.crud-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.col-12 { width: 100%; }
.col-6 { width: calc(50% - 10px); }
.col-4 { width: calc(33.333% - 13.33px); }
.col-3 { width: calc(25% - 15px); }

@media (max-width: 768px) {
    .col-6, .col-4, .col-3 {
        width: 100%;
    }
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-custom label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group-custom label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-group-custom input[type="text"],
.form-group-custom input[type="password"],
.form-group-custom input[type="datetime-local"],
.form-group-custom input[type="number"],
.form-group-custom select,
.form-group-custom textarea {
    padding: 12px 16px;
    border: 1px solid var(--light-border);
    border-radius: 12px;
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition);
}

.form-group-custom input:focus,
.form-group-custom select:focus,
.form-group-custom textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-group-custom input[readonly] {
    background-color: #f8fafc;
    cursor: not-allowed;
}

.form-tip {
    font-size: 0.78rem;
    color: var(--dark-muted);
}

/* Custom Toggle Switch */
.toggle-label-container {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.toggle-label-container .label-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.toggle-help {
    font-size: 0.8rem;
    color: var(--dark-muted);
    margin-top: 4px;
    display: block;
}

.locked-status-display {
    padding: 10px 0;
}

.locked-status-display p {
    font-size: 0.78rem;
    color: var(--warning);
    margin-top: 6px;
}

.form-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--light-border);
    padding-top: 24px;
    margin-top: 12px;
}

/* ------------------------------------------------------------------
 * RESPONSIVENESS AND ANIMATIONS
 * ------------------------------------------------------------------ */

@media (max-width: 992px) {
    .sidebar {
        left: -250px;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-wrapper {
        margin-left: 0;
        max-width: 100%;
    }
    
    .sidebar-toggle-btn {
        display: block;
    }
    
    .header {
        padding: 0 20px;
    }
    
    .content-area {
        padding: 20px;
    }
}

/* Keyframes for micro-animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.animate-fade-in {
    animation: slideUp 0.5s ease-out forwards;
}

.italic {
    font-style: italic;
}

.text-muted {
    color: var(--dark-muted);
}

.text-danger {
    color: var(--danger);
}

.font-bold {
    font-weight: 700;
}

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