/* Custom styles for TSA Pin Database */

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #01274e;
    color: #cacaca;
    line-height: 1.6;
}

.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #4a89dc, #357abd);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

/* Card Styling */
.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    background-color: #a4d0ff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 180px;
    object-fit: contain;
    padding: 15px;
    background-color: #f5f5f5;
    transition: transform 0.2s ease-in-out;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    font-weight: 600;
    color: #2c3e50;
}

.card-footer {
    background-color: #00000000;
    border-top: 1px solid #e9ecef;
}

/* Form Styling */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #4a89dc;
    box-shadow: 0 0 0 0.2rem rgba(74, 137, 220, 0.25);
}

.btn-primary {
    background-color: #4a89dc;
    border-color: #4a89dc;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #3a78cb;
    border-color: #3a78cb;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #4a89dc;
    border-color: #4a89dc;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #4a89dc;
    color: #ffffff;
}

/* Admin Panel */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: #4a89dc;
    border-bottom: 2px solid #4a89dc;
}

.table img {
    border-radius: 4px;
    object-fit: contain;
    background-color: #f8f9fa;
}

/* Footer */
footer {
    /* background-color: #2c3e50 !important; */
    color: #ecf0f1;
    padding: 25px 0;
    margin-top: 50px !important;
    text-align: center;
}

footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .form-control, .form-select {
        padding: 8px 12px;
    }

    .btn-primary {
        padding: 8px 16px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

.alert {
    animation: fadeIn 0.5s ease-in-out;
}

/* Tag Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    transition: background-color 0.2s, transform 0.2s;
}

.badge:hover {
    background-color: #4a89dc !important;
    transform: scale(1.1);
}

/* Modal Improvements */
.modal-content {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #4a89dc;
    color: white;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* Search Form Styling */
.search-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Pin Type Badges */
.pin-type-state {
    background-color: #17a2b8;
}

.pin-type-national {
    background-color: #6f42c1;
}

.pin-type-chapter {
    background-color: #28a745;
}

/* Pin Map Styles */
.map-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.us-map {
    width: 70%;
    height: auto;
}

.countries {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.country {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f9fa;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.country.highlighted {
    background-color: #4a89dc;
    color: white;
}

.state {
    fill: #e0e0e0;
    stroke: #ffffff;
    stroke-width: 1;
    transition: fill 0.3s ease;
}

.state.highlighted {
    fill: #4a89dc;
}