/* 
 * Deep Blue Enterprise Theme
 * Primary Color: #1e3a8a
 * Based on resources/views/layouts/app.blade.php brand identity
 */

:root {
    /* Brand Colors */
    --primary: #1e3a8a;
    --primary-hover: #172e6e;
    --primary-light: #eff6ff;
    --secondary: #64748b;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Surface Colors */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Shadow System (Tailwind-like) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Base Overrides */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

/* Card Styling - Premium Look */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

/* Button Styling */
.btn {
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.4);
}

.btn-light {
    background-color: white;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-light:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: var(--radius);
    border-color: var(--border-color);
    padding: 0.625rem 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.input-group-text {
    border-color: var(--border-color);
    border-radius: var(--radius);
}

/* Modern Page Header */
.page-inner-header {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.page-inner-header::before {
    content: '';
    position: absolute;
    top: 0;
    width: 60%;
    height: 100%;
    right: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-inner-header h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-inner-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Badge Styles */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: var(--radius);
}

.badge-soft-primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-soft-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-soft-warning {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-soft-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stats-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.stats-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.stats-icon.success { background-color: #dcfce7; color: #166534; }
.stats-icon.warning { background-color: #fef3c7; color: #b45309; }
.stats-icon.info { background-color: #e0f2fe; color: #0284c7; }

/* Table Styling */
.table-custom {
    color: var(--text-primary);
}

.table-custom thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table-custom tbody tr:hover {
    background-color: var(--primary-light);
}

/* Utilities */
.text-primary-dark { color: var(--primary); }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.shadow-hover:hover { box-shadow: var(--shadow-md); }
