/* Reset e estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

h1 {
    color: #ff0050;
    font-weight: 700;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

h3 {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 4px;
    color: #777;
    font-weight: 600;
    position: relative;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step.active {
    background-color: #ff0050;
    color: white;
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 20px;
    height: 2px;
    background-color: #ddd;
    transform: translateY(-50%);
}

.step:last-child::after {
    display: none;
}

/* Formulários */
.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="file"] {
    padding: 10px 0;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn {
    background-color: #ff0050;
    color: white;
}

.back-btn {
    background-color: #f1f1f1;
    color: #555;
}

.submit-btn {
    background-color: #00c16e;
    color: white;
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.98);
}

/* Review */
.review-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.review-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.review-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.review-creative-item, .review-ad-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.review-creative-item p, .review-ad-item p {
    margin: 8px 0;
}

.review-creative-item strong, .review-ad-item strong {
    color: #2196F3;
}

.review-creative-item hr, .review-ad-item hr {
    border: none;
    border-top: 1px dashed #ddd;
    margin: 10px 0;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff0050;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notificação */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1001;
    min-width: 300px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 10px;
}

.hidden {
    display: none !important;
}

/* Estilos para o container de usuário e botão de logout */
.user-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.user-info {
    font-size: 14px;
    color: #555;
}

.admin-link {
    color: #ff0050;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #fff0f4;
    transition: all 0.3s;
}

.admin-link:hover {
    background-color: #ffe0e8;
}

.logout-btn {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: #e6e6e6;
    border-color: #ccc;
}

/* Estilos para revisão de múltiplos criativos e anúncios */
.multiple-ads-review {
    margin-top: 10px;
}

/* Estilos para o mini-formulário dentro dos criativos na visualização principal */
.ad-config-mini-form {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.ad-config-mini-form h4 {
    margin-top: 0;
    color: #2196F3;
    border-bottom-color: #E3F2FD;
}

.ad-config-mini-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.mini-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}

.mini-input:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.info-message {
    font-size: 0.8em;
    color: #3498db;
    margin-top: 5px;
    font-style: italic;
}

/* Estilos adicionais para a configuração de anúncios nos criativos */
.ad-config-mini-form h4 {
    margin: 0 0 15px;
    color: #333;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.image-upload-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.upload-status {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

.image-upload {
    margin: 8px 0;
}

/* Melhorias para preview-item */
.preview-item {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.preview-item.completed {
    border-color: #2ecc71;
}

.preview-item.error {
    border-color: #e74c3c;
}

.video-name {
    font-weight: bold;
    margin-bottom: 5px;
    word-break: break-all;
    font-size: 0.9em;
    color: #333;
}

.status {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 10px;
    padding: 3px 0;
}

.preview-item.completed .status {
    color: #2ecc71;
    font-weight: bold;
}

.preview-item.error .status {
    color: #e74c3c;
    font-weight: bold;
}

/* Estilos para a seção de criativos existentes */
.existing-creatives-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.existing-creatives-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.creatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.creative-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.creative-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    text-align: center;
}

.creative-card .upload-slot {
    margin-bottom: 15px;
    background-color: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.creative-card .upload-status {
    font-size: 13px;
    margin-top: 5px;
    color: #666;
    word-break: break-all;
    padding: 5px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.creative-card.has-video .video-slot .upload-status {
    color: #4CAF50;
    font-weight: 600;
    background-color: #E8F5E9;
}

.creative-card.has-image .image-slot .upload-status {
    color: #2196F3;
    font-weight: 600;
    background-color: #E3F2FD;
}

.delete-creative-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.delete-creative-btn:hover {
    background-color: #d32f2f;
} 