/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #667eea !important;
}

.navbar-brand i {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link i {
    margin-right: 0.5rem;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    overflow: hidden;
}

.dropdown-item {
    color: #4a5568;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: none;
}

.dropdown-item.active {
    background: #667eea;
    color: white;
}

.dropdown-item.active:hover {
    background: #5a67d8;
    color: white;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 80px);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* ===== CARDS & SECTIONS ===== */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 16px 16px 0 0;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-danger {
    border: 2px solid #e53e3e;
    color: #e53e3e;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== FORMS ===== */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-text {
    color: #718096;
    font-size: 0.875rem;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border-left: 4px solid #c53030;
}

.alert-warning {
    background: rgba(246, 173, 85, 0.1);
    color: #c05621;
    border-left: 4px solid #c05621;
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: #22543d;
    border-left: 4px solid #22543d;
}

/* ===== GALLERY ===== */
.gallery-item {
    margin-bottom: 2rem;
}

.gallery-item img {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== PROFILE ===== */
.profile-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.profile-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
}

.profile-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

/* ===== UPLOAD FORM ===== */
.upload-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    max-width: 600px;
    margin: 0 auto;
}

.upload-form h2 {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.image-preview {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== MODAL ===== */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
}

/* ===== GALLERY TABS ===== */
.nav-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px 12px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.nav-tabs .nav-link.active:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    transform: none;
}

.tab-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 16px 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive gallery tabs */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        margin-right: 0.25rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tabs .nav-link {
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }
}

/* ===== BADGES ===== */
.badge {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%) !important;
}

/* ===== FOOTER ===== */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

footer h5 {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

footer a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #667eea;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: #667eea !important;
}

.text-muted {
    color: #718096 !important;
}

.bg-light {
    background: rgba(255, 255, 255, 0.9) !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.rounded {
    border-radius: 12px !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .upload-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .nav-tabs .nav-link {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .upload-form {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    .card-body {
        padding: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 2rem 1rem 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .profile-section, .upload-form {
    animation: fadeIn 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

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

/* ===== ADMIN PANEL STYLES ===== */
.admin-dashboard .card {
    margin-bottom: 1.5rem;
}

.admin-dashboard .card-body {
    text-align: center;
}

.admin-dashboard .card i {
    margin-bottom: 1rem;
}

.admin-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.admin-stats .card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.admin-table {
    overflow-x: auto;
    max-width: 100%;
}

.admin-table table {
    width: 100%;
    min-width: 600px;
}

.admin-table th,
.admin-table td {
    vertical-align: middle;
    padding: 0.75rem;
}

.admin-table .img-thumbnail {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-settings .form-control {
    max-width: 100%;
}

.admin-settings .input-group {
    max-width: 300px;
}

.toast-container {
    z-index: 1050;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Responsive admin styles */
@media (max-width: 768px) {
    .admin-stats .card {
        min-width: 150px;
        max-width: 200px;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    .admin-settings .input-group {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .admin-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-stats .card {
        width: 100%;
        max-width: none;
    }
    
    .admin-table table {
        min-width: 400px;
    }
}

/* Fix horizontal scroll issues */
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col-12, .col-md-3, .col-md-4, .col-md-8 {
    padding-left: 15px;
    padding-right: 15px;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.card {
    max-width: 100%;
    overflow: hidden;
}

.card-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure no horizontal scroll on body */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Fix navbar width */
.navbar .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== LOAD MORE BUTTONS ===== */
.load-more-btn, #load-more-guest {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #667eea;
    color: #667eea;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover, #load-more-guest:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.load-more-btn:disabled, #load-more-guest:disabled {
    background: rgba(255, 255, 255, 0.5);
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-btn:disabled:hover, #load-more-guest:disabled:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #999;
    transform: none;
    box-shadow: none;
} 

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-banner a {
    color: #86b7fe;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #b3d7ff;
}

.cookie-banner .btn {
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

/* Cookie Details Modal */
.cookie-details {
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-details h6 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.cookie-details ul {
    margin-bottom: 1rem;
}

.cookie-details li {
    margin-bottom: 0.25rem;
}

/* Spin animation for icons */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} 