/* Hazmat Site Custom Styles */

:root {
    --hazmat-primary: #c41e3a;        /* Safety Red */
    --hazmat-secondary: #ff8c00;      /* Warning Orange */
    --hazmat-accent: #ffd700;         /* Caution Yellow */
    --hazmat-dark: #1a1a2e;           /* Dark Blue-Gray */
    --hazmat-light: #f4f4f4;          /* Light Gray */
    --hazmat-success: #28a745;        /* Safety Green */
    --hazmat-info: #17a2b8;           /* Info Blue */
    --hazmat-text: #2c3e50;           /* Dark Text */
    --hazmat-border: #dee2e6;         /* Border Gray */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--hazmat-light);
    color: var(--hazmat-text);
}

/* Header and Navigation */
.hazmat-header {
    background: linear-gradient(135deg, var(--hazmat-dark) 0%, #2c3e50 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: relative;
}

.hazmat-header-wallpaper {
    background-image: url('/css/hazmat-header-wallpaper.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hazmat-header-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    width: 40px;
    height: 40px;
}

.hazmat-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: inline-block;
}

.hazmat-brand:hover {
    color: var(--hazmat-accent) !important;
}

.hazmat-brand-subtitle {
    font-size: 0.75rem;
    color: var(--hazmat-accent);
    display: block;
}

.hazmat-nav {
    background-color: transparent;
}

.hazmat-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.hazmat-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid var(--hazmat-secondary);
}

.hazmat-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid var(--hazmat-accent);
}

/* Main Content */
.hazmat-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.hazmat-page-title {
    color: var(--hazmat-dark);
    border-left: 5px solid var(--hazmat-primary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.hazmat-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hazmat-card-header {
    background: linear-gradient(135deg, var(--hazmat-primary) 0%, #a01828 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: 3px solid var(--hazmat-secondary);
}

.hazmat-card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn-hazmat-primary {
    background: linear-gradient(135deg, var(--hazmat-primary) 0%, #a01828 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-hazmat-primary:hover {
    background: linear-gradient(135deg, #a01828 0%, var(--hazmat-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    color: white;
}

.btn-hazmat-secondary {
    background-color: var(--hazmat-secondary);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-hazmat-secondary:hover {
    background-color: #e07b00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
    color: white;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--hazmat-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--hazmat-border);
    border-radius: 5px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hazmat-primary);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
}

.form-check-input {
    border: 2px solid var(--hazmat-border);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--hazmat-primary);
    border-color: var(--hazmat-primary);
}

.form-check-label {
    cursor: pointer;
}

/* Tables */
.hazmat-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hazmat-table thead {
    background: linear-gradient(135deg, var(--hazmat-dark) 0%, #2c3e50 100%);
    color: white;
}

.hazmat-table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.hazmat-table tbody tr {
    transition: all 0.2s ease;
}

.hazmat-table tbody tr:hover {
    background-color: rgba(196, 30, 58, 0.05);
    transform: scale(1.01);
}

.hazmat-table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

/* Badges */
.hazmat-badge-danger {
    background-color: var(--hazmat-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.hazmat-badge-warning {
    background-color: var(--hazmat-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.hazmat-badge-safe {
    background-color: var(--hazmat-success);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Alert Boxes */
.hazmat-alert {
    border-left: 5px solid var(--hazmat-primary);
    border-radius: 5px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hazmat-alert-warning {
    border-left-color: var(--hazmat-secondary);
}

.hazmat-alert-info {
    border-left-color: var(--hazmat-info);
}

/* Lists */
.hazmat-list {
    list-style: none;
    padding-left: 0;
}

.hazmat-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-left: 4px solid var(--hazmat-primary);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.hazmat-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hazmat-list li::before {
    content: "▸";
    color: var(--hazmat-primary);
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Footer */
.hazmat-footer {
    background-color: var(--hazmat-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--hazmat-primary);
}

.hazmat-footer a {
    color: var(--hazmat-accent);
    text-decoration: none;
}

.hazmat-footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Info Boxes */
.hazmat-info-box {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.hazmat-info-box h4 {
    color: var(--hazmat-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hazmat-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .hazmat-page-title {
        font-size: 1.75rem;
    }
}
