:root {
    --primary-color: #032541;
    --secondary-color: #01b4e4;
    --accent-color: #d62d20;
    --dark-color: #081c24;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #f8f9fa;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link i {
    margin-right: 5px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    font-weight: 600;
    padding: 1.2rem;
    border-bottom: none;
}

.card-body {
    padding: 2rem;
}

/* Button Styles */
.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #0099c3;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--accent-color);
}

.btn-danger:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #25D366;
}

.btn-info {
    background-color: #0088cc;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-group .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Form Styles */
.form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(1, 180, 228, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-select {
    border-radius: 50px;
    padding: 12px 20px;
}

/* Table Styles */
.table {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1.2rem;
}

.table td {
    padding: 1.2rem;
    vertical-align: middle;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    border-bottom: none;
}

.modal-body {
    padding: 2rem;
}

/* Banner Preview */
.banner-preview {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid #eee;
}

.banner-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Edit Banner Page */
.edit-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    position: relative;
}

.page-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto;
    border-radius: 2px;
}

.edit-banner-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.edit-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.btn-save {
    background-color: var(--secondary-color);
    color: white;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

/* Dashboard Styles */
.search-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.results-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    min-height: 300px;
}

.media-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    transition: var(--transition);
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.media-item:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

.media-item img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.media-info h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

.media-info small {
    color: #6c757d;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .edit-banner-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .media-item {
        flex-direction: column;
        text-align: center;
    }
    
    .media-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .table, .edit-banner-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}


#loadMoreBtn {
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#resultsList {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Estilo da barra de rolagem para navegadores WebKit */
#resultsList::-webkit-scrollbar {
    width: 8px;
}

#resultsList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#resultsList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#resultsList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para carregar mais banners */
.results-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
}

.results-count {
    font-weight: 600;
    color: #495057;
}

.results-showing {
    font-size: 0.85rem;
    color: #6c757d;
}

#loadMoreBtn {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

#resultsList {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

/* Estilos redes sociais */
.social-sharing {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    border: 1px solid #dee2e6;
}

.social-sharing h5 {
    color: #495057;
    font-weight: 600;
}

.social-sharing .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-sharing .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-sharing .btn i {
    margin: 0;
}