/* ============================================
   assets/css/style.css - Main stylesheet
   ============================================ */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 56px;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-bottom: 40px;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    font-weight: 500;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
}

.country-card {
    cursor: pointer;
}

.country-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,123,255,0.3);
}

/* Tables */
.table {
    background: white;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #212529 !important;
    margin-top: auto;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white !important;
}

/* Search Box */
#countrySearch {
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

#countrySearch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .country-card {
        margin-bottom: 15px;
    }
    
    .table {
        font-size: 0.9rem;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #333;
    padding: 10px 20px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover {
    background-color: #e9ecef;
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link.active {
    background-color: #e9ecef;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Country Flags */
.country-flag-container {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-emoji {
    font-size: 48px;
    line-height: 1;
    display: inline-block;
}

.country-flag-img {
    max-width: 64px;
    max-height: 48px;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.country-flag-header {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h1 .flag-emoji {
    font-size: 36px;
}

/* Country card hover effect with flag */
.country-card:hover .flag-emoji {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.country-card:hover .country-flag-img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Mobile responsive flags */
@media (max-width: 768px) {
    .country-flag-container {
        height: 48px;
    }
    
    .flag-emoji {
        font-size: 36px;
    }
    
    .country-flag-img {
        max-width: 48px;
        max-height: 36px;
    }
    
    .country-flag-header {
        width: 36px;
        height: 27px;
    }
    
    h1 .flag-emoji {
        font-size: 28px;
    }
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================
   assets/css/admin.css - Admin panel styles
   ============================================ */

.admin-container {
    min-height: calc(100vh - 56px);
    background-color: #f5f7fa;
}

.admin-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.admin-table {
    background: white;
}

.admin-table thead {
    background-color: #f8f9fa;
}

.dashboard-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.dashboard-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dashboard-widget-icon {
    font-size: 3rem;
    opacity: 0.2;
    position: absolute;
    right: 20px;
    top: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}