/* Custom Styles for Logistics System */

:root {
    --primary-color: #004299;
    --secondary-color: #0754a6;
    --tertiary-color: #4a92cd;
    --quaternary-color: #7bb3e8;
    --white: #fff;
    --black: #000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    min-height: 100vh;
    margin: 0;
}

.internal-page {
    background: var(--white) !important;
}

.navbar {
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.sidebar {
    background-color: var(--white);
    border-right: 1px solid #dee2e6;
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: var(--white);
}

.table {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--tertiary-color);
    border-color: var(--tertiary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #053d7a;
    border-color: #053d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.quaternary-color {
    background-color: var(--quaternary-color);
}

h2 {
    color: var(--secondary-color);
}

/* Badge styling for uniform width */
.badge:not(.badge-counter) {
    min-width: 160px;
    display: inline-block;
    text-align: center;
    padding: 0.375rem 0.75rem;
}

.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 66, 153, 0.25);
}

/* Login specific styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.login-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.google-btn {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.google-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.google-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
    color: #666;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: var(--white);
    padding: 0 10px;
}

/* Hero section for dashboards */
.hero-section {
    background: var(--tertiary-color);
    color: var(--white);
    padding: 2rem 1rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Dashboard container */
.dashboard-container {
    max-width: 1000px;
    width: 100%;
}

/* Enhanced card styles */
.card.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 0.75rem;
}

.card.shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2) !important;
}

/* Calendar input styling */
.input-group .form-control {
    border-right: none;
}

.input-group .input-group-text {
    background-color: var(--white);
    border-left: none;
    cursor: pointer;
}

/* Table styling */
.table th {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.table td {
    vertical-align: middle;
}

/* Main content background for pages with white header/logo */
.main-content {
    background-color: rgba(123, 179, 232, 0.06); /* light tint from --tertiary-color */
    padding: 1.5rem;
    border-radius: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    .login-card {
        padding: 1.5rem;
    }
    .hero-section {
        padding: 2rem 1rem;
    }
}