/* TNS PSA Custom Dark Theme Styles */

:root {
    --bs-dark: #1a1d20;
    --bs-dark-rgb: 26, 29, 32;
    --bs-body-bg: #1a1d20;
    --bs-body-color: #e9ecef;
}

body {
    min-height: 100vh;
}

/* Card Styling */
.card {
    background-color: #212529;
    border-color: #495057;
}

.card-header {
    background-color: #2c3034;
    border-bottom-color: #495057;
}

/* Form Controls */
.form-control,
.form-select {
    background-color: #2c3034;
    border-color: #495057;
    color: #e9ecef;
}

.form-control:focus,
.form-select:focus {
    background-color: #343a40;
    border-color: #6c757d;
    color: #e9ecef;
}

.form-control::placeholder {
    color: #6c757d;
}

/* Tables */
.table {
    --bs-table-bg: #212529;
    --bs-table-striped-bg: #2c3034;
    --bs-table-hover-bg: #343a40;
    --bs-table-border-color: #495057;
}

.table thead th {
    border-bottom-color: #495057;
    font-weight: 600;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

/* Buttons */
.btn-primary {
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
}

.btn-success {
    --bs-btn-bg: #198754;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #146c43;
}

/* Badge Styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Modal */
.modal-content {
    background-color: #212529;
    border-color: #495057;
}

.modal-header {
    border-bottom-color: #495057;
}

.modal-footer {
    border-top-color: #495057;
}

/* Dropdown */
.dropdown-menu {
    background-color: #212529;
    border-color: #495057;
}

.dropdown-item {
    color: #e9ecef;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #2c3034;
    color: #fff;
}

.dropdown-divider {
    border-top-color: #495057;
}

/* Alert Customization */
.alert {
    border-radius: 0.375rem;
}

/* Login Page Specific */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d20 0%, #2c3034 100%);
}

.login-card {
    max-width: 450px;
    width: 100%;
}

/* Dashboard Cards */
.stat-card {
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Ticket Status Colors */
.status-new { background-color: #007bff !important; }
.status-open { background-color: #28a745 !important; }
.status-in-progress { background-color: #ffc107 !important; color: #000 !important; }
.status-waiting { background-color: #17a2b8 !important; }
.status-resolved { background-color: #6c757d !important; }
.status-closed { background-color: #343a40 !important; }

/* Priority Colors */
.priority-low { background-color: #28a745 !important; }
.priority-medium { background-color: #ffc107 !important; color: #000 !important; }
.priority-high { background-color: #fd7e14 !important; }
.priority-critical { background-color: #dc3545 !important; }

/* Internal Note Styling */
.internal-note {
    background-color: #2c3034;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1rem;
}

.internal-note-badge {
    background-color: #ffc107;
    color: #000;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* Customer Comment Styling */
.customer-comment {
    background-color: #212529;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #495057;
    border-radius: 0.375rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #6c757d;
    background-color: #2c3034;
}

.file-upload-area.dragover {
    border-color: #0d6efd;
    background-color: #0d1117;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #212529;
}

::-webkit-scrollbar-thumb {
    background: #495057;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-icon {
        font-size: 2rem;
    }

    .table {
        font-size: 0.875rem;
    }
}
