/* West Bengal Government Theme - Light Background Design */

/* CSS Variables for WB Government Colors */
:root {
    /* West Bengal Government Colors */
    --wb-primary: #1e40af;        /* Government Blue */
    --wb-secondary: #059669;      /* Government Green */
    --wb-accent: #d97706;         /* Government Orange */
    --wb-gold: #f59e0b;          /* Government Gold */
    --wb-danger: #dc2626;         /* Alert Red */
    --wb-warning: #d97706;        /* Warning Orange */
    --wb-success: #16a34a;        /* Success Green */
    --wb-info: #0284c7;          /* Info Blue */
    
    /* Light Background Colors */
    --wb-bg-primary: #f8fafc;     /* Primary Light Background */
    --wb-bg-secondary: #f1f5f9;   /* Secondary Light Background */
    --wb-bg-tertiary: #e2e8f0;    /* Tertiary Light Background */
    --wb-bg-white: #ffffff;       /* Pure White */
    --wb-bg-light-blue: #eff6ff;  /* Light Blue Background */
    --wb-bg-light-green: #f0fdf4; /* Light Green Background */
    
    /* Text Colors */
    --wb-text-primary: #1e293b;   /* Primary Text */
    --wb-text-secondary: #475569; /* Secondary Text */
    --wb-text-muted: #64748b;     /* Muted Text */
    --wb-text-light: #94a3b8;     /* Light Text */
    
    /* Border Colors */
    --wb-border-light: #e2e8f0;   /* Light Border */
    --wb-border-medium: #cbd5e1;  /* Medium Border */
    --wb-border-dark: #94a3b8;    /* Dark Border */
    
    /* Shadow Colors */
    --wb-shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --wb-shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --wb-shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --wb-font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --wb-font-size-xs: 0.75rem;
    --wb-font-size-sm: 0.875rem;
    --wb-font-size-base: 1rem;
    --wb-font-size-lg: 1.125rem;
    --wb-font-size-xl: 1.25rem;
    --wb-font-size-2xl: 1.5rem;
    --wb-font-size-3xl: 1.875rem;
}

/* Global Page Styling */
body {
    background-color: var(--wb-bg-primary);
    color: var(--wb-text-primary);
    font-family: var(--wb-font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.wb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* West Bengal Government Header */
.wb-header {
    background: linear-gradient(135deg, var(--wb-primary) 0%, var(--wb-secondary) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--wb-shadow-medium);
}

.wb-header h1 {
    margin: 0;
    font-size: var(--wb-font-size-2xl);
    font-weight: 700;
    text-align: center;
}

.wb-header .wb-subtitle {
    text-align: center;
    margin-top: 0.5rem;
    font-size: var(--wb-font-size-sm);
    opacity: 0.9;
}

/* West Bengal Government Cards */
.wb-card {
    background: var(--wb-bg-white);
    border: 1px solid var(--wb-border-light);
    border-radius: 0.75rem;
    box-shadow: var(--wb-shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.wb-card:hover {
    box-shadow: var(--wb-shadow-medium);
    transform: translateY(-2px);
}

.wb-card-header {
    background: linear-gradient(135deg, var(--wb-primary) 0%, var(--wb-secondary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: none;
    font-weight: 600;
    font-size: var(--wb-font-size-lg);
    position: relative;
    overflow: hidden;
}
/*
.wb-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: skewY(-3deg);
    transform-origin: top right;
}
*/
.wb-card-header i {
    position: relative;
    z-index: 1;
}

.wb-card-body {
    padding: 1.5rem;
    background: white;
}

.wb-card .badge {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wb-card .wb-btn {
    min-width: 140px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: none;
    border-radius: 6px;
}

.wb-card .text-muted {
    color: var(--wb-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Grid System */
.wb-grid {
    display: grid;
    gap: 1.5rem;
}

.wb-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 1200px) {
    .wb-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .wb-card {
        margin-bottom: 1rem;
    }
    
    .wb-card-header {
        padding: 0.875rem 1.25rem;
    }
    
    .wb-card-body {
        padding: 1.25rem;
    }
    
    .wb-card .wb-btn {
        min-width: 120px;
        padding: 0.5rem 0.75rem;
    }
    
    .wb-grid {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .wb-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .wb-card .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .wb-card .wb-btn {
        width: 100%;
    }
}

.wb-card-footer {
    background: var(--wb-bg-secondary);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--wb-border-light);
}

/* Government Statistics Cards */
.wb-stats-card {
    background: var(--wb-bg-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--wb-shadow-light);
    transition: all 0.3s ease;
    text-align: center;
    border-left: 4px solid var(--wb-primary);
    margin-bottom: 1rem;
}

.wb-stats-card:hover {
    box-shadow: var(--wb-shadow-medium);
    transform: translateY(-2px);
}

.wb-stats-card.success {
    border-left-color: var(--wb-success);
    background: var(--wb-bg-light-green);
}

.wb-stats-card.warning {
    border-left-color: var(--wb-warning);
    background: #fef3c7;
}

.wb-stats-card.danger {
    border-left-color: var(--wb-danger);
    background: #fef2f2;
}

.wb-stats-card.info {
    border-left-color: var(--wb-info);
    background: var(--wb-bg-light-blue);
}

.wb-stats-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--wb-primary) 0%, var(--wb-secondary) 100%);
}

.wb-stats-number {
    font-size: var(--wb-font-size-3xl);
    font-weight: 700;
    color: var(--wb-text-primary);
    margin-bottom: 0.5rem;
}

.wb-stats-label {
    color: var(--wb-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--wb-font-size-sm);
}

/* West Bengal Government Buttons */
.wb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: var(--wb-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--wb-shadow-light);
    position: relative;
    overflow: hidden;
}

.wb-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--wb-shadow-medium);
}

.wb-btn-primary {
    background: linear-gradient(135deg, var(--wb-primary) 0%, #3b82f6 100%);
    color: white;
}

.wb-btn-secondary {
    background: linear-gradient(135deg, var(--wb-secondary) 0%, #10b981 100%);
    color: white;
}

.wb-btn-success {
    background: linear-gradient(135deg, var(--wb-success) 0%, #22c55e 100%);
    color: white;
}

.wb-btn-danger {
    background: linear-gradient(135deg, var(--wb-danger) 0%, #ef4444 100%);
    color: white;
}

.wb-btn-warning {
    background: linear-gradient(135deg, var(--wb-warning) 0%, #f59e0b 100%);
    color: white;
}

.wb-btn-info {
    background: linear-gradient(135deg, var(--wb-info) 0%, #0ea5e9 100%);
    color: white;
}

.wb-btn-outline {
    background: transparent;
    border: 2px solid var(--wb-primary);
    color: var(--wb-primary);
}

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

.wb-btn-light {
    background: var(--wb-bg-secondary);
    color: var(--wb-text-primary);
    border: 1px solid var(--wb-border-light);
}

.wb-btn-light:hover {
    background: var(--wb-bg-tertiary);
}

.wb-btn i {
    margin-right: 0.5rem;
}

/* Button Sizes */
.wb-btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--wb-font-size-xs);
}

.wb-btn-lg {
    padding: 1rem 2rem;
    font-size: var(--wb-font-size-lg);
}

/* West Bengal Government Tables */
.wb-table-container {
    background: var(--wb-bg-white);
    border-radius: 0.75rem;
    box-shadow: var(--wb-shadow-light);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.wb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--wb-font-size-sm);
}

.wb-table thead {
    background: linear-gradient(135deg, var(--wb-primary) 0%, var(--wb-secondary) 100%);
    color: white;
}

.wb-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--wb-font-size-xs);
}

.wb-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--wb-border-light);
    vertical-align: middle;
}

.wb-table tbody tr:hover {
    background: var(--wb-bg-secondary);
}

.wb-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Status Badges */
.wb-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: var(--wb-font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wb-badge-success {
    background: var(--wb-bg-light-green);
    color: var(--wb-success);
    border: 1px solid var(--wb-success);
}

.wb-badge-warning {
    background: #fef3c7;
    color: var(--wb-warning);
    border: 1px solid var(--wb-warning);
}

.wb-badge-danger {
    background: #fef2f2;
    color: var(--wb-danger);
    border: 1px solid var(--wb-danger);
}

.wb-badge-info {
    background: var(--wb-bg-light-blue);
    color: var(--wb-info);
    border: 1px solid var(--wb-info);
}

.wb-badge-primary {
    background: var(--wb-bg-light-blue);
    color: var(--wb-primary);
    border: 1px solid var(--wb-primary);
}

/* Form Styling */
.wb-form-group {
    margin-bottom: 1.5rem;
}

.wb-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--wb-text-primary);
    font-size: var(--wb-font-size-sm);
}

.wb-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--wb-border-light);
    border-radius: 0.5rem;
    font-size: var(--wb-font-size-base);
    transition: all 0.3s ease;
    background: var(--wb-bg-white);
}

.wb-form-control:focus {
    outline: none;
    border-color: var(--wb-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.wb-form-control::placeholder {
    color: var(--wb-text-light);
}

.wb-form-control.is-invalid {
    border-color: var(--wb-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.invalid-feedback {
    color: var(--wb-danger);
    font-size: var(--wb-font-size-sm);
    margin-top: 0.25rem;
    display: block;
}

/* Select Dropdown */
.wb-select {
    position: relative;
}

.wb-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Government Alert Messages */
.wb-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    font-weight: 500;
}

.wb-alert-success {
    background: var(--wb-bg-light-green);
    color: var(--wb-success);
    border-left-color: var(--wb-success);
}

.wb-alert-warning {
    background: #fef3c7;
    color: var(--wb-warning);
    border-left-color: var(--wb-warning);
}

.wb-alert-danger {
    background: #fef2f2;
    color: var(--wb-danger);
    border-left-color: var(--wb-danger);
}

.wb-alert-info {
    background: var(--wb-bg-light-blue);
    color: var(--wb-info);
    border-left-color: var(--wb-info);
}

/* Responsive Grid System */
.wb-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.wb-col {
    flex: 1;
    padding: 0 0.75rem;
}

.wb-col-12 { width: 100%; }
.wb-col-11 { width: 91.666667%; }
.wb-col-10 { width: 83.333333%; }
.wb-col-9 { width: 75%; }
.wb-col-8 { width: 66.666667%; }
.wb-col-7 { width: 58.333333%; }
.wb-col-6 { width: 50%; }
.wb-col-5 { width: 41.666667%; }
.wb-col-4 { width: 33.333333%; }
.wb-col-3 { width: 25%; }
.wb-col-2 { width: 16.666667%; }
.wb-col-1 { width: 8.333333%; }

/* Breadcrumb Navigation */
.wb-breadcrumb {
    background: var(--wb-bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.wb-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.wb-breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: var(--wb-font-size-sm);
}

.wb-breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--wb-text-muted);
}

.wb-breadcrumb-item a {
    color: var(--wb-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wb-breadcrumb-item a:hover {
    color: var(--wb-secondary);
}

.wb-breadcrumb-item.active {
    color: var(--wb-text-muted);
}

/* Pagination */
.wb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.wb-pagination-item {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--wb-border-light);
    border-radius: 0.375rem;
    background: var(--wb-bg-white);
    color: var(--wb-text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.wb-pagination-item:hover {
    background: var(--wb-bg-secondary);
    color: var(--wb-primary);
}

.wb-pagination-item.active {
    background: var(--wb-primary);
    color: white;
    border-color: var(--wb-primary);
}

.wb-pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Bars */
.wb-progress {
    background: var(--wb-bg-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 0.75rem;
    margin-bottom: 1rem;
}

.wb-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--wb-primary) 0%, var(--wb-secondary) 100%);
    transition: width 0.3s ease;
}

.wb-progress-bar.success {
    background: linear-gradient(135deg, var(--wb-success) 0%, #22c55e 100%);
}

.wb-progress-bar.warning {
    background: linear-gradient(135deg, var(--wb-warning) 0%, #f59e0b 100%);
}

.wb-progress-bar.danger {
    background: linear-gradient(135deg, var(--wb-danger) 0%, #ef4444 100%);
}

/* Loading Spinner */
.wb-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--wb-border-light);
    border-top: 2px solid var(--wb-primary);
    border-radius: 50%;
    animation: wb-spin 1s linear infinite;
}

@keyframes wb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.wb-modal-content {
    background-color: var(--wb-bg-white);
    border-radius: 1rem;
    box-shadow: var(--wb-shadow-heavy);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.wb-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--wb-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--wb-primary) 0%, var(--wb-secondary) 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
}

.wb-modal-header h4 {
    margin: 0;
    font-weight: 600;
}

.wb-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.wb-modal-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.wb-modal-body {
    padding: 1.5rem;
}

.wb-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--wb-border-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: var(--wb-bg-secondary);
    border-radius: 0 0 1rem 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wb-col-lg-12 { width: 100%; }
    .wb-col-lg-6 { width: 50%; }
    .wb-col-lg-4 { width: 33.333333%; }
    .wb-col-lg-3 { width: 25%; }
}

@media (max-width: 768px) {
    .wb-container {
        padding: 0 0.5rem;
    }
    
    .wb-row {
        margin: 0 -0.5rem;
    }
    
    .wb-col {
        padding: 0 0.5rem;
    }
    
    .wb-col-md-12 { width: 100%; }
    .wb-col-md-6 { width: 50%; }
    
    .wb-card-header,
    .wb-card-body,
    .wb-card-footer {
        padding: 1rem;
    }
    
    .wb-stats-card {
        padding: 1rem;
    }
    
    .wb-stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .wb-stats-number {
        font-size: var(--wb-font-size-2xl);
    }
    
    .wb-btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--wb-font-size-xs);
    }
    
    .wb-table {
        font-size: var(--wb-font-size-xs);
    }
    
    .wb-table th,
    .wb-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .wb-breadcrumb-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wb-breadcrumb-item:not(:last-child)::after {
        content: '';
        margin: 0;
    }
}

@media (max-width: 640px) {
    .wb-col-sm-12 { width: 100%; }
    
    .wb-header h1 {
        font-size: var(--wb-font-size-xl);
    }
    
    .wb-pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .wb-pagination-item {
        padding: 0.375rem 0.5rem;
        font-size: var(--wb-font-size-xs);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .wb-card,
    .wb-stats-card,
    .wb-table-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .wb-btn {
        display: none;
    }
    
    .wb-header {
        background: white;
        color: black;
        border-bottom: 2px solid #ccc;
    }
}

/* Accessibility */
.wb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.wb-btn:focus,
.wb-form-control:focus,
.wb-pagination-item:focus {
    outline: 2px solid var(--wb-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --wb-border-light: #000;
        --wb-text-muted: #000;
        --wb-bg-secondary: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 