/* Brixham Heritage Hub Admin Styles */

:root {
    --primary-color: #14455C;      /* Deep Maritime Blue */
    --secondary-color: #D64045;    /* Heritage Red */
    --accent-color: #E6B655;       /* Warm Gold */
    --text-color: #2C3E50;         /* Slate Gray */
    --light-bg: #F8F9FA;           /* Off White */
    --border-color: #dee2e6;
    --base-font-size: 15px;        /* Base font size for the admin site */
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.5;
    font-size: var(--base-font-size);
}

/* Navigation */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-color) !important;
}

.nav-link.active,
.nav-link:active {
    color: var(--accent-color) !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem !important;
}

.card-body {
    padding: 1.25rem;
    font-size: var(--base-font-size) !important;
}

.card-title {
    font-size: 1rem !important;
    margin-bottom: 0.75rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-warning {
    background-color: #E6B655;
    border-color: #E6B655;
    color: white;
}

.btn-warning:hover {
    background-color: #D64045;
    border-color: #D64045;
    color: white;
}

/* Forms */
.form-control {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    font-size: var(--base-font-size) !important;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem !important;
}

/* Alerts */
.alert {
    border-radius: 4px;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem !important;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    background-color: white;
    border-top: 1px solid var(--border-color);
}

/* Dashboard Cards */
.dashboard-card {
    height: 100%;
}

.dashboard-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem !important;
}

.dashboard-card .card-text {
    color: #666;
    font-size: var(--base-font-size) !important;
}

/* Quick Actions */
.quick-actions .btn {
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: #D64045;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14455C;
}

/* Headers and Titles */
h1, .h1 { font-size: 1.5rem !important; }
h2, .h2 { font-size: 1.3rem !important; }
h3, .h3 { font-size: 1.2rem !important; }
h4, .h4 { font-size: 1.1rem !important; }
h5, .h5 { font-size: 1rem !important; }
h6, .h6 { font-size: 0.9rem !important; }

/* Buttons */
.btn {
    font-size: 0.9rem !important;
    padding: 0.375rem 0.75rem;
}

/* Tables */
.table {
    font-size: var(--base-font-size) !important;
}

.table th {
    font-size: var(--base-font-size) !important;
    font-weight: 600;
}
