/* Main Styling for ITSM System */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

.jumbotron {
    background-color: rgba(33, 37, 41, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dashboard-summary {
    background-color: rgba(33, 37, 41, 0.5);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.dashboard-summary h2 {
    margin-bottom: 20px;
}

/* Status colors */
.status-new {
    color: #17a2b8;
}

.status-assigned {
    color: #6f42c1;
}

.status-in-progress {
    color: #fd7e14;
}

.status-pending {
    color: #ffc107;
}

.status-resolved {
    color: #28a745;
}

.status-closed {
    color: #6c757d;
}

.status-cancelled {
    color: #dc3545;
}

/* Priority colors */
.priority-critical {
    color: #dc3545;
}

.priority-high {
    color: #fd7e14;
}

.priority-medium {
    color: #ffc107;
}

.priority-low {
    color: #28a745;
}

/* Component status */
.component-active {
    color: #28a745;
}

.component-maintenance {
    color: #ffc107;
}

.component-inactive {
    color: #6c757d;
}

.component-decommissioned {
    color: #dc3545;
}

/* Change Management Header Styling - Dark/Light Mode Compatible */
.change-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.change-header h1, .change-header h2, .change-header h3, .change-header h4, .change-header h5 {
    color: white;
    margin-bottom: 0;
}

.change-section-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.change-stats-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.change-form-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.change-info-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .change-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .change-section-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .change-stats-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .change-form-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .change-info-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Light Mode Adjustments */
[data-bs-theme="light"] .change-header,
[data-bs-theme="light"] .change-section-header,
[data-bs-theme="light"] .change-stats-header,
[data-bs-theme="light"] .change-form-header,
[data-bs-theme="light"] .change-info-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced card borders for change management */
.change-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.change-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .change-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: var(--bs-dark);
}

[data-bs-theme="light"] .change-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
}

/* Dashboard widget enhancements */
[data-bs-theme="dark"] .dashboard-widget.card {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button color adjustments for change headers */
.change-header .btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.change-header .btn-light:hover {
    background-color: white;
    border-color: white;
    color: #333;
}

.change-header .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

.change-header .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* Ensure text is white in all header sections */
.change-header *, 
.change-section-header *, 
.change-stats-header *, 
.change-form-header *, 
.change-info-header * {
    color: white !important;
}

/* Stats card enhancements for change management */
.change-stats-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.change-stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .change-stats-card {
    background-color: var(--bs-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .change-stats-card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Ensure colored backgrounds are visible in dark mode */
[data-bs-theme="dark"] .bg-primary {
    background-color: #0d6efd !important;
    color: white !important;
}

[data-bs-theme="dark"] .bg-success {
    background-color: #198754 !important;
    color: white !important;
}

[data-bs-theme="dark"] .bg-warning {
    background-color: #fd7e14 !important;
    color: white !important;
}

[data-bs-theme="dark"] .bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

[data-bs-theme="dark"] .bg-dark {
    background-color: #495057 !important;
    color: white !important;
}

[data-bs-theme="dark"] .bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

[data-bs-theme="dark"] .bg-info {
    background-color: #0dcaf0 !important;
    color: white !important;
}

/* Purple background for total tickets in dark mode */
[data-bs-theme="dark"] .bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

/* Ensure dashboard widgets maintain their colors in dark mode */
[data-bs-theme="dark"] .dashboard-widget.bg-primary,
[data-bs-theme="dark"] .dashboard-widget.bg-success,
[data-bs-theme="dark"] .dashboard-widget.bg-warning,
[data-bs-theme="dark"] .dashboard-widget.bg-danger,
[data-bs-theme="dark"] .dashboard-widget.bg-dark,
[data-bs-theme="dark"] .dashboard-widget.bg-secondary,
[data-bs-theme="dark"] .dashboard-widget.bg-info {
    opacity: 0.9;
}

[data-bs-theme="dark"] .dashboard-widget:hover {
    opacity: 1;
    transform: translateY(-3px);
}