﻿/* crystal-clear.css - Complete Version for Bootstrap 3.3.7 */
/* Last Updated: For Visual Studio 2012 Compatibility */

/* ====== CUSTOM VARIABLES (Fallback for older browsers) ====== */
/* Primary Colors */
.crystal-primary { color: #3498db; }
.crystal-primary-dark { color: #2980b9; }
.crystal-primary-light { color: #5dade2; }

/* Secondary Colors */
.crystal-secondary { color: #2c3e50; }
.crystal-secondary-dark { color: #1a252f; }

/* Status Colors */
.crystal-success { color: #27ae60; }
.crystal-success-dark { color: #229954; }
.crystal-warning { color: #f39c12; }
.crystal-warning-dark { color: #d68910; }
.crystal-danger { color: #e74c3c; }
.crystal-danger-dark { color: #c0392b; }
.crystal-info { color: #17a2b8; }
.crystal-info-dark { color: #148f9c; }

/* Neutral Colors */
.crystal-light { color: #ecf0f1; }
.crystal-dark { color: #34495e; }
.crystal-gray { color: #95a5a6; }
.crystal-gray-light { color: #bdc3c7; }
.crystal-white { color: #ffffff; }
.crystal-black { color: #000000; }

/* ====== GLOBAL STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ====== BOOTSTRAP 3.3.7 COMPATIBILITY OVERRIDES ====== */

/* Fix Bootstrap container padding */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Fix Bootstrap row margins */
.row {
    margin-left: -15px;
    margin-right: -15px;
    display: block;
    clear: both;
}

/* Clear floats for Bootstrap columns */
.row:before,
.row:after {
    content: " ";
    display: table;
}

.row:after {
    clear: both;
}

/* Column padding fix */
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,
.col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3,
.col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5,
.col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
.col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9,
.col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11,
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    float: left;
}

/* ====== UTILITY CLASSES ====== */
.text-primary { color: #3498db !important; }
.text-success { color: #27ae60 !important; }
.text-warning { color: #f39c12 !important; }
.text-danger { color: #e74c3c !important; }
.text-info { color: #17a2b8 !important; }
.text-secondary { color: #2c3e50 !important; }
.text-white { color: #ffffff !important; }
.text-muted { color: #6c757d !important; }
.text-dark { color: #343a40 !important; }
.text-light { color: #f8f9fa !important; }

.bg-primary { 
    background: linear-gradient(135deg, #3498db, #2980b9) !important; 
    color: white !important; 
}
.bg-success { 
    background: linear-gradient(135deg, #27ae60, #229954) !important; 
    color: white !important; 
}
.bg-warning { 
    background: linear-gradient(135deg, #f39c12, #d68910) !important; 
    color: #000 !important; 
}
.bg-danger { 
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important; 
    color: white !important; 
}
.bg-info { 
    background: linear-gradient(135deg, #17a2b8, #148f9c) !important; 
    color: white !important; 
}
.bg-secondary { 
    background: linear-gradient(135deg, #2c3e50, #1a252f) !important; 
    color: white !important; 
}
.bg-light { 
    background: #ecf0f1 !important; 
    color: #333 !important; 
}
.bg-white { 
    background: #ffffff !important; 
    color: #333 !important; 
}
.bg-dark { 
    background: #343a40 !important; 
    color: white !important; 
}

/* Margin and Padding Utilities */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mr-0 { margin-right: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.m-1 { margin: 5px !important; }
.mt-1 { margin-top: 5px !important; }
.mr-1 { margin-right: 5px !important; }
.mb-1 { margin-bottom: 5px !important; }
.ml-1 { margin-left: 5px !important; }
.m-2 { margin: 10px !important; }
.mt-2 { margin-top: 10px !important; }
.mr-2 { margin-right: 10px !important; }
.mb-2 { margin-bottom: 10px !important; }
.ml-2 { margin-left: 10px !important; }
.m-3 { margin: 15px !important; }
.mt-3 { margin-top: 15px !important; }
.mr-3 { margin-right: 15px !important; }
.mb-3 { margin-bottom: 15px !important; }
.ml-3 { margin-left: 15px !important; }
.m-4 { margin: 20px !important; }
.mt-4 { margin-top: 20px !important; }
.mr-4 { margin-right: 20px !important; }
.mb-4 { margin-bottom: 20px !important; }
.ml-4 { margin-left: 20px !important; }
.m-5 { margin: 30px !important; }
.mt-5 { margin-top: 30px !important; }
.mr-5 { margin-right: 30px !important; }
.mb-5 { margin-bottom: 30px !important; }
.ml-5 { margin-left: 30px !important; }

.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pr-0 { padding-right: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.p-1 { padding: 5px !important; }
.pt-1 { padding-top: 5px !important; }
.pr-1 { padding-right: 5px !important; }
.pb-1 { padding-bottom: 5px !important; }
.pl-1 { padding-left: 5px !important; }
.p-2 { padding: 10px !important; }
.pt-2 { padding-top: 10px !important; }
.pr-2 { padding-right: 10px !important; }
.pb-2 { padding-bottom: 10px !important; }
.pl-2 { padding-left: 10px !important; }
.p-3 { padding: 15px !important; }
.pt-3 { padding-top: 15px !important; }
.pr-3 { padding-right: 15px !important; }
.pb-3 { padding-bottom: 15px !important; }
.pl-3 { padding-left: 15px !important; }
.p-4 { padding: 20px !important; }
.pt-4 { padding-top: 20px !important; }
.pr-4 { padding-right: 20px !important; }
.pb-4 { padding-bottom: 20px !important; }
.pl-4 { padding-left: 20px !important; }
.p-5 { padding: 30px !important; }
.pt-5 { padding-top: 30px !important; }
.pr-5 { padding-right: 30px !important; }
.pb-5 { padding-bottom: 30px !important; }
.pl-5 { padding-left: 30px !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-justify { text-align: justify !important; }

/* Display */
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-none { display: none !important; }

/* Float */
.float-left { float: left !important; }
.float-right { float: right !important; }
.float-none { float: none !important; }

/* Clear */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

/* ====== DASHBOARD COMPONENTS ====== */

/* Content Header */
.content-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
    position: relative;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.content-header h1 i {
    margin-right: 15px;
    color: #3498db;
}

.content-header p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.dashboard-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.dashboard-card h4 i {
    margin-right: 10px;
}

.dashboard-card h4 .badge {
    margin-left: 10px;
    font-size: 0.8rem;
    padding: 3px 8px;
}

/* ====== STATISTICS CARDS ====== */
.stats-grid {
    display: block;
    margin-bottom: 30px;
}

.stats-grid .row {
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Stat Card Color Variants */
.stat-card.card-primary { border-top-color: #3498db; }
.stat-card.card-success { border-top-color: #27ae60; }
.stat-card.card-warning { border-top-color: #f39c12; }
.stat-card.card-danger { border-top-color: #e74c3c; }
.stat-card.card-info { border-top-color: #17a2b8; }
.stat-card.card-secondary { border-top-color: #2c3e50; }

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

/* Icon Colors */
.card-primary .stat-icon { color: #3498db !important; }
.card-success .stat-icon { color: #27ae60 !important; }
.card-warning .stat-icon { color: #f39c12 !important; }
.card-danger .stat-icon { color: #e74c3c !important; }
.card-info .stat-icon { color: #17a2b8 !important; }
.card-secondary .stat-icon { color: #2c3e50 !important; }

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-card .card-trend {
    font-size: 0.8rem;
    margin-top: 10px;
}

.stat-card .card-trend.text-success { color: #27ae60 !important; }
.stat-card .card-trend.text-danger { color: #e74c3c !important; }
.stat-card .card-trend.text-warning { color: #f39c12 !important; }

/* ====== BUTTONS ====== */
.btn-crystal {
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white !important;
    position: relative;
    overflow: hidden;
}

.btn-crystal:hover,
.btn-crystal:focus,
.btn-crystal:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white !important;
    outline: none;
}

.btn-crystal:active {
    transform: translateY(0);
}

/* Button Variants */
.btn-crystal-primary { 
    background: linear-gradient(135deg, #3498db, #2980b9) !important; 
}

.btn-crystal-success { 
    background: linear-gradient(135deg, #27ae60, #229954) !important; 
}

.btn-crystal-warning { 
    background: linear-gradient(135deg, #f39c12, #d68910) !important; 
    color: #000 !important; 
}

.btn-crystal-danger { 
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important; 
}

.btn-crystal-info { 
    background: linear-gradient(135deg, #17a2b8, #148f9c) !important; 
}

.btn-crystal-secondary { 
    background: linear-gradient(135deg, #2c3e50, #1a252f) !important; 
}

.btn-crystal-light { 
    background: #ecf0f1 !important; 
    color: #333 !important; 
}

.btn-crystal-dark { 
    background: #343a40 !important; 
    color: white !important; 
}

/* Button Sizes */
.btn-crystal.btn-sm { 
    padding: 6px 12px; 
    font-size: 12px; 
}

.btn-crystal.btn-lg { 
    padding: 12px 24px; 
    font-size: 14px; 
}

.btn-crystal.btn-block {
    display: block;
    width: 100%;
}

/* ====== TABLES ====== */
.crystal-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 0;
    border: none;
}

.crystal-table table {
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
}

.crystal-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.crystal-table th:last-child {
    border-right: none;
}

.crystal-table td {
    padding: 12px 15px;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 14px;
}

.crystal-table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.crystal-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.crystal-table .btn-crystal {
    margin: 2px;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* ====== FORMS ====== */
.form-control-crystal {
    border: 2px solid #e9ecef;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    color: #495057;
    background-color: #fff;
}

.form-control-crystal:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.form-control-crystal::-webkit-input-placeholder { color: #6c757d; }
.form-control-crystal::-moz-placeholder { color: #6c757d; }
.form-control-crystal:-ms-input-placeholder { color: #6c757d; }
.form-control-crystal::-ms-input-placeholder { color: #6c757d; }
.form-control-crystal::placeholder { color: #6c757d; }

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-group label.required:after {
    content: " *";
    color: #e74c3c;
}

.form-group .help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

/* Form Validation Styles */
.text-danger {
    color: #e74c3c !important;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.has-error .form-control-crystal {
    border-color: #e74c3c;
}

.has-error .form-control-crystal:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.has-success .form-control-crystal {
    border-color: #27ae60;
}

.has-success .form-control-crystal:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

/* ====== BADGES ====== */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge-primary { 
    background: linear-gradient(135deg, #3498db, #2980b9); 
    color: white; 
}

.badge-success { 
    background: linear-gradient(135deg, #27ae60, #229954); 
    color: white; 
}

.badge-warning { 
    background: linear-gradient(135deg, #f39c12, #d68910); 
    color: #000; 
}

.badge-danger { 
    background: linear-gradient(135deg, #e74c3c, #c0392b); 
    color: white; 
}

.badge-info { 
    background: linear-gradient(135deg, #17a2b8, #148f9c); 
    color: white; 
}

.badge-secondary { 
    background: linear-gradient(135deg, #2c3e50, #1a252f); 
    color: white; 
}

.badge-light { 
    background: #ecf0f1; 
    color: #333; 
}

.badge-dark { 
    background: #343a40; 
    color: white; 
}

/* Badge Pills */
.badge-pill {
    border-radius: 10rem;
    padding-right: 0.6em;
    padding-left: 0.6em;
}

/* ====== QUICK ACTIONS ====== */
.quick-actions-grid {
    display: block;
    margin: 20px 0;
}

.quick-actions-grid .row {
    margin-bottom: 15px;
}

.quick-action-box {
    background: white;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.quick-action-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.quick-action-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.quick-action-box span {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    line-height: 1.4;
}

/* Quick Action Color Variants */
.quick-action-box.bg-primary,
.quick-action-box.bg-success,
.quick-action-box.bg-warning,
.quick-action-box.bg-info,
.quick-action-box.bg-danger,
.quick-action-box.bg-secondary {
    border: none;
}

.quick-action-box.bg-primary i,
.quick-action-box.bg-success i,
.quick-action-box.bg-warning i,
.quick-action-box.bg-info i,
.quick-action-box.bg-danger i,
.quick-action-box.bg-secondary i {
    color: white;
}

.quick-action-box.bg-primary span,
.quick-action-box.bg-success span,
.quick-action-box.bg-warning span,
.quick-action-box.bg-info span,
.quick-action-box.bg-danger span,
.quick-action-box.bg-secondary span {
    color: white;
}

.quick-action-box.bg-warning span {
    color: #000;
}

/* ====== SYSTEM STATUS ====== */
.system-status {
    padding: 15px 0;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 15px;
    display: inline-block;
}

.status-indicator.online {
    background: #27ae60;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

.status-indicator.offline {
    background: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.status-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ====== ALERTS ====== */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.alert-dismissible {
    padding-right: 40px;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px 20px;
    color: inherit;
    opacity: 0.5;
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.alert-dismissible .close:hover {
    opacity: 0.75;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #27ae60;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #f39c12;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-primary {
    background: #d1ecf8;
    color: #0c5460;
    border-left: 4px solid #3498db;
}

.alert-secondary {
    background: #e2e3e5;
    color: #383d41;
    border-left: 4px solid #6c757d;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ====== PAGINATION ====== */
.pagination {
    margin: 20px 0;
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 4px;
}

.pagination > li {
    display: inline;
}

.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 8px 12px;
    margin-left: -1px;
    line-height: 1.6;
    color: #3498db;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #2980b9;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
    cursor: default;
}

.pagination > .disabled > span,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > span:hover {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ====== MODALS ====== */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    padding: 20px;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    font-size: 24px;
    margin-top: -5px;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-header h4 {
    font-weight: 600;
    margin: 0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px;
}

/* ====== SPEAKER ITEMS (CreateEvent.aspx) ====== */
.speakers-list {
    margin-top: 20px;
}

.speaker-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    transition: all 0.3s ease;
}

.speaker-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.speaker-item strong {
    color: #2c3e50;
    font-size: 14px;
}

.speaker-item .btn-danger {
    margin-left: 10px;
}

/* ====== STATS GRID (SMSDashboard.aspx) ====== */
.stats-grid-sms {
    display: block;
    margin-bottom: 30px;
}

.stats-grid-sms .dashboard-card {
    text-align: center;
    padding: 25px;
    margin-bottom: 20px;
    height: 100%;
}

.stats-grid-sms .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.stats-grid-sms .card-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: #2c3e50;
}

.stats-grid-sms .card-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SMS Status Classes */
.sms-success { color: #27ae60 !important; }
.sms-failed { color: #e74c3c !important; }
.sms-pending { color: #f39c12 !important; }

/* ====== CERTIFICATE APPROVAL (CertificateApproval.aspx) ====== */
.badge-pending { 
    background: linear-gradient(135deg, #f39c12, #d68910); 
    color: #000; 
}

.badge-approved { 
    background: linear-gradient(135deg, #27ae60, #229954); 
    color: white; 
}

.badge-rejected { 
    background: linear-gradient(135deg, #e74c3c, #c0392b); 
    color: white; 
}

.badge-generated { 
    background: linear-gradient(135deg, #17a2b8, #148f9c); 
    color: white; 
}

/* Stat Cards for Certificate Approval */
.stat-card-basic {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    color: white;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card-basic .stat-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-card-basic .stat-label {
    font-size: 1em;
    opacity: 0.9;
}

/* ====== VISIT ENTRY (VisitEntry.aspx) ====== */
.visit-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.visit-status.present {
    background: #d4edda;
    color: #155724;
}

.visit-status.absent {
    background: #f8d7da;
    color: #721c24;
}

.visit-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* ====== REPORTS (Reports.aspx) ====== */
.report-stat-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-stat-card:hover {
    transform: scale(1.05);
}

.report-summary {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.report-summary h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ====== LOGIN PAGE STYLES ====== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #2c3e50;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.login-header p {
    color: #6c757d;
    font-size: 14px;
}

.login-logo {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
}

/* ====== RESPONSIVE DESIGN ====== */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .content-header {
        padding: 15px;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .stat-card {
        padding: 15px;
        min-height: 150px;
    }
    
    .stat-card .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-card .stat-icon {
        font-size: 2rem;
    }
    
    .btn-crystal {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .crystal-table th,
    .crystal-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .col-sm-6 {
        width: 50%;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-4 {
        width: 33.33333333%;
    }
    
    .col-md-3 {
        width: 25%;
    }
    
    .col-md-6 {
        width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .col-lg-2 {
        width: 16.66666667%;
    }
    
    .col-lg-4 {
        width: 33.33333333%;
    }
    
    .col-lg-8 {
        width: 66.66666667%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .dashboard-card,
    .stat-card,
    .content-header {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .btn-crystal,
    .modal,
    .mobile-toggle,
    .mobile-overlay {
        display: none !important;
    }
}

/* ====== ACCESSIBILITY ====== */
.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;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ====== SCROLLBAR STYLING ====== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ====== FALLBACK FOR OLDER BROWSERS ====== */
.no-flexbox .stat-card,
.no-flexbox .quick-action-box,
.no-flexbox .status-item {
    display: block;
}

.no-flexbox .stat-card {
    height: auto;
    min-height: 180px;
}

.no-flexbox .status-item {
    display: table;
    width: 100%;
}

.no-flexbox .status-label,
.no-flexbox .status-indicator,
.no-flexbox .status-text {
    display: table-cell;
    vertical-align: middle;
}

/* ====== IE SPECIFIC FIXES ====== */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .stat-card,
    .quick-action-box {
        display: block;
    }
    
    .bg-primary,
    .bg-success,
    .bg-warning,
    .bg-danger,
    .bg-info,
    .bg-secondary {
        background: #3498db !important; /* Fallback for IE */
    }
    
    .btn-crystal-primary,
    .btn-crystal-success,
    .btn-crystal-warning,
    .btn-crystal-danger,
    .btn-crystal-info,
    .btn-crystal-secondary {
        background: #3498db !important; /* Fallback for IE */
    }
}

/* ====== IMPORTANT OVERRIDES FOR BOOTSTRAP CONFLICTS ====== */
.btn-crystal {
    background-image: none !important;
    filter: none !important;
}

.crystal-table th {
    background-image: none !important;
    filter: none !important;
}

.badge-primary,
.badge-success,
.badge-warning,
.badge-danger,
.badge-info,
.badge-secondary {
    background-image: none !important;
    filter: none !important;
}

/* Remove Bootstrap default button styles */
.btn-default,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
    background-image: none !important;
}

/* Force our styles to override Bootstrap */
.dashboard-card,
.stat-card,
.content-header,
.crystal-table,
.btn-crystal,
.form-control-crystal,
.quick-action-box,
.system-status,
.alert {
    box-sizing: border-box !important;
}

/* ====== LOADING STATES ====== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====== TOOLTIPS ====== */
.crystal-tooltip {
    position: relative;
    display: inline-block;
}

.crystal-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.crystal-tooltip .tooltip-text:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.crystal-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ====== FINAL CLEANUP ====== */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure tables are responsive on mobile */
@media (max-width: 767.98px) {
    .table-responsive {
        border: 1px solid #dee2e6;
    }
    
    .crystal-table {
        min-width: 600px;
    }
}
/* crystal-clear.css - COMPLETE PROPER VERSION */
/* Optimized for Bootstrap 3.3.7 and Visual Studio 2012 */

/* ====== GLOBAL RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

/* ====== BOOTSTRAP 3.3.7 COMPATIBILITY ====== */
.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

.row:before,
.row:after {
    content: " ";
    display: table;
}

.row:after {
    clear: both;
}

/* Column Classes */
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,
.col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3,
.col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5,
.col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
.col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9,
.col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11,
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    float: left;
}

/* ====== CONTENT HEADER ====== */
.content-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
    position: relative;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.content-header h1 i {
    margin-right: 15px;
    color: #3498db;
    font-size: 1.5rem;
}

.content-header p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 1rem;
}

.content-header .text-right {
    text-align: right;
    position: absolute;
    right: 30px;
    top: 30px;
}

.content-header .text-right small {
    display: block;
    font-size: 0.85rem;
}

.text-success {
    color: #27ae60 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* ====== STATISTICS CARDS ====== */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Stat Card Color Variants */
.stat-card.card-primary { border-top-color: #3498db; }
.stat-card.card-success { border-top-color: #27ae60; }
.stat-card.card-warning { border-top-color: #f39c12; }
.stat-card.card-danger { border-top-color: #e74c3c; }
.stat-card.card-info { border-top-color: #17a2b8; }
.stat-card.card-secondary { border-top-color: #2c3e50; }

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

/* Icon Colors */
.card-primary .stat-icon { color: #3498db !important; }
.card-success .stat-icon { color: #27ae60 !important; }
.card-warning .stat-icon { color: #f39c12 !important; }
.card-danger .stat-icon { color: #e74c3c !important; }
.card-info .stat-icon { color: #17a2b8 !important; }
.card-secondary .stat-icon { color: #2c3e50 !important; }

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-card .card-trend {
    font-size: 0.8rem;
    margin-top: 10px;
}

.stat-card .card-trend.text-success { color: #27ae60 !important; }

/* ====== DASHBOARD CARDS ====== */
.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.dashboard-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.dashboard-card h4 i {
    margin-right: 10px;
}

.dashboard-card h4 .badge {
    margin-left: 10px;
}

.text-primary { color: #3498db !important; }
.text-warning { color: #f39c12 !important; }
.text-info { color: #17a2b8 !important; }

/* ====== QUICK ACTIONS ====== */
.quick-actions-grid {
    margin: 15px 0;
}

.quick-actions-grid .row {
    margin-bottom: 15px;
}

.quick-action-box {
    background: white;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.quick-action-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.quick-action-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.quick-action-box span {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    line-height: 1.4;
}

/* Quick Action Color Variants */
.quick-action-box.bg-primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    border: none;
}

.quick-action-box.bg-success {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
    border: none;
}

.quick-action-box.bg-warning {
    background: linear-gradient(135deg, #f39c12, #d68910) !important;
    border: none;
}

.quick-action-box.bg-info {
    background: linear-gradient(135deg, #17a2b8, #148f9c) !important;
    border: none;
}

.quick-action-box.bg-primary i,
.quick-action-box.bg-success i,
.quick-action-box.bg-warning i,
.quick-action-box.bg-info i {
    color: white;
}

.quick-action-box.bg-primary span,
.quick-action-box.bg-success span,
.quick-action-box.bg-warning span,
.quick-action-box.bg-info span {
    color: white;
}

.quick-action-box.bg-warning span {
    color: #000;
}

/* ====== TABLES ====== */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.crystal-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
    border: none;
    width: 100%;
    border-collapse: collapse;
}

.crystal-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    text-align: left;
}

.crystal-table td {
    padding: 12px 15px;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 14px;
}

.crystal-table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.crystal-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* ====== BUTTONS ====== */
.btn-crystal {
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white !important;
    position: relative;
    overflow: hidden;
}

.btn-crystal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white !important;
}

.btn-crystal-warning { 
    background: linear-gradient(135deg, #f39c12, #d68910) !important; 
}

.btn-crystal-success { 
    background: linear-gradient(135deg, #27ae60, #229954) !important; 
}

.btn-crystal-primary { 
    background: linear-gradient(135deg, #3498db, #2980b9) !important; 
}

.btn-crystal-danger { 
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important; 
}

.btn-crystal-info { 
    background: linear-gradient(135deg, #17a2b8, #148f9c) !important; 
}

.btn-crystal-secondary { 
    background: linear-gradient(135deg, #2c3e50, #1a252f) !important; 
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ====== BADGES ====== */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge-warning { 
    background: linear-gradient(135deg, #f39c12, #d68910); 
    color: #000; 
}

.badge-primary { 
    background: linear-gradient(135deg, #3498db, #2980b9); 
    color: white; 
}

.badge-success { 
    background: linear-gradient(135deg, #27ae60, #229954); 
    color: white; 
}

.badge-danger { 
    background: linear-gradient(135deg, #e74c3c, #c0392b); 
    color: white; 
}

.badge-info { 
    background: linear-gradient(135deg, #17a2b8, #148f9c); 
    color: white; 
}

.badge-secondary { 
    background: linear-gradient(135deg, #2c3e50, #1a252f); 
    color: white; 
}

.float-right {
    float: right;
}

/* ====== SYSTEM STATUS ====== */
.system-status {
    padding: 15px 0;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 15px;
    display: inline-block;
}

.status-indicator.online {
    background: #27ae60;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

.status-indicator.offline {
    background: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.status-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ====== FORM CONTROLS ====== */
.form-control-crystal {
    border: 2px solid #e9ecef;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    color: #495057;
    background-color: #fff;
}

.form-control-crystal:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* ====== ALERTS ====== */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #27ae60;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #f39c12;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ====== UTILITY CLASSES ====== */
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.float-left { float: left !important; }
.float-right { float: right !important; }
.float-none { float: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }

.mb-3 { margin-bottom: 15px !important; }
.mb-4 { margin-bottom: 20px !important; }
.mt-3 { margin-top: 15px !important; }
.mt-4 { margin-top: 20px !important; }

/* ====== RESPONSIVE DESIGN ====== */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .content-header {
        padding: 20px;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .content-header .text-right {
        position: static;
        text-align: left;
        margin-top: 10px;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .stat-card {
        padding: 15px;
        min-height: 150px;
    }
    
    .stat-card .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-card .stat-icon {
        font-size: 2rem;
    }
    
    .quick-action-box {
        padding: 15px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .col-sm-6 {
        width: 50%;
    }
    
    .col-sm-4 {
        width: 33.33333333%;
    }
    
    .col-sm-3 {
        width: 25%;
    }
    
    .col-sm-2 {
        width: 16.66666667%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
    
    .col-md-4 {
        width: 33.33333333%;
    }
    
    .col-md-3 {
        width: 25%;
    }
    
    .col-md-2 {
        width: 16.66666667%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .col-lg-8 {
        width: 66.66666667%;
    }
    
    .col-lg-4 {
        width: 33.33333333%;
    }
    
    .col-lg-6 {
        width: 50%;
    }
    
    .col-lg-3 {
        width: 25%;
    }
    
    .col-lg-2 {
        width: 16.66666667%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ====== GRID COLUMN SPECIFIC STYLES ====== */
/* Ensure proper spacing for all column classes */
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
.col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
    margin-bottom: 20px;
}

/* Clear floats for Bootstrap grid */
.row:after {
    content: "";
    display: table;
    clear: both;
}

/* ====== VISUAL STUDIO 2012 COMPATIBILITY ====== */
/* Remove any potential conflicts */
.btn-crystal,
.stat-card,
.dashboard-card,
.content-header,
.crystal-table {
    background-image: none !important;
    filter: none !important;
}

/* Ensure proper z-index for overlays */
.stat-card:hover,
.quick-action-box:hover,
.dashboard-card:hover {
    z-index: 1;
    position: relative;
}

/* ====== PRINT STYLES ====== */
@media print {
    .content-header,
    .dashboard-card,
    .stat-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .btn-crystal {
        display: none !important;
    }
}

/* ====== FIX FOR BOOTSTRAP 3 BUTTON CONFLICTS ====== */
.btn-crystal {
    /* Override Bootstrap button styles */
    background-image: none !important;
    text-shadow: none !important;
    border: none !important;
}

.btn-crystal:active,
.btn-crystal.active {
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) !important;
}

.btn-crystal:focus {
    outline: 2px solid #3498db !important;
    outline-offset: 2px !important;
}

/* ====== FIX FOR FONT AWESOME ALIGNMENT ====== */
.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====== FIX FOR EMPTY DATA TEXT ====== */
.table > tbody > tr > td.empty-data {
    text-align: center;
    padding: 40px !important;
    color: #6c757d;
    font-style: italic;
}

/* ====== ADDITIONAL UTILITY CLASSES ====== */
.bg-primary { background: linear-gradient(135deg, #3498db, #2980b9) !important; color: white !important; }
.bg-success { background: linear-gradient(135deg, #27ae60, #229954) !important; color: white !important; }
.bg-warning { background: linear-gradient(135deg, #f39c12, #d68910) !important; color: #000 !important; }
.bg-danger { background: linear-gradient(135deg, #e74c3c, #c0392b) !important; color: white !important; }
.bg-info { background: linear-gradient(135deg, #17a2b8, #148f9c) !important; color: white !important; }
.bg-secondary { background: linear-gradient(135deg, #2c3e50, #1a252f) !important; color: white !important; }
.bg-white { background: white !important; color: #333 !important; }

/* ====== SCROLLBAR STYLING ====== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ====== FINAL CLEANUP ====== */
/* Ensure all elements are properly box-sized */
*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Remove text decoration from all links */
a {
    text-decoration: none;
    color: inherit;
}

a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
}

/* Fix for form elements */
input,
button,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Clearfix helper */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}