/*
RHD Tire Intranet - Custom Styles
Professional automotive industry aesthetic
Color scheme: Matching rhdtire.net - Black, White, Light Blue
*/

:root {
    --rhd-primary: #000000;
    --rhd-secondary: #333333;
    --rhd-accent: #ADD8E6;
    --rhd-light-blue: #ADD8E6;
    --rhd-light-gray: #e2e2e2;
    --rhd-dark-gray: #222222;
    --rhd-white: #ffffff;
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--rhd-primary) !important;
}

.btn-primary {
    background-color: var(--rhd-primary);
    border-color: var(--rhd-primary);
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
}

.text-primary {
    color: var(--rhd-primary) !important;
}

.border-primary {
    border-color: var(--rhd-primary) !important;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f7fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform 0.2s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
}

.card-header {
    border-bottom: 2px solid var(--rhd-primary);
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Tables */
.table {
    background-color: white;
}

.table thead {
    background-color: var(--rhd-light-gray);
    color: var(--rhd-dark-gray);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--rhd-light-blue);
    box-shadow: 0 0 0 0.2rem rgba(173, 216, 230, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--rhd-dark-gray);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Chat Interface */
#chatContainer {
    background-color: #f8f9fa;
}

#chatContainer::-webkit-scrollbar {
    width: 8px;
}

#chatContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#chatContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#chatContainer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Employee Directory Cards */
.directory-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

/* Announcement Priority Indicators */
.priority-urgent {
    border-left: 4px solid #dc3545;
}

.priority-important {
    border-left: 4px solid #ffc107;
}

.priority-normal {
    border-left: 4px solid #6c757d;
}

/* Login Page */
.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .display-5,
    .display-6 {
        font-size: 2rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Animation for page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.alert {
    animation: fadeIn 0.3s ease-in;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
