/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right top, #00456a, #004f73, #00597c, #006384, #006d8c);
    min-height: 100vh;
    padding: 20px;
}

/* Tela de Login */
.login-container {
    max-width: 500px;
    margin: 80px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    text-align: center;
}

.login-container h1 {
    color: #006d8c;
    margin-bottom: 10px;
    font-size: 2em;
}

.login-container p {
    color: #666;
    margin-bottom: 30px;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.info-box {
    background: #e8f4f8;
    border: 2px solid #006d8c;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.info-box h3 {
    color: #006d8c;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    padding: 8px 0;
    color: #333;
    font-size: 14px;
}

.info-text {
    font-size: 13px;
    color: #666;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    text-align: left;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    display: none;
}

.container.show {
    display: block;
}

/* Header */
.header {
    background: linear-gradient(to right top, #00456a, #004f73, #00597c, #006384, #006d8c);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.header.trial-mode {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: white;
    color: #006d8c;
}

.status-badge {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.trial {
    background: rgba(255,255,255,0.3);
    color: white;
    border: 2px solid white;
}

.status-badge.authenticated {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Conteúdo */
.content {
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #006d8c;
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Upload de Arquivo */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    background: #e8e8e8;
    border-color: #006d8c;
}

.logo-preview {
    max-width: 150px;
    max-height: 100px;
    margin-top: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
}

/* Lista de Funcionários */
.funcionarios-list {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.funcionario-item {
    background: white;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Botões */
.btn {
    background: linear-gradient(to right top, #00456a, #004f73, #00597c, #006384, #006d8c);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 109, 140, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    width: auto;
}

.btn-primary {
    background: linear-gradient(to right top, #00456a, #004f73, #00597c, #006384, #006d8c);
}

.btn-secondary {
    background: linear-gradient(135deg, #a8a8a8 0%, #777777 100%);
}

.btn-tertiary {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    color: #333;
}

.btn-trial {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    font-size: 18px;
    padding: 15px 30px;
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Preview */
.preview-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.preview-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    background: #e0e0e0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab.active {
    background: linear-gradient(to right top, #00456a, #004f73, #00597c, #006384, #006d8c);
    color: white;
}

.preview-box {
    background: white;
    padding: 40px;
    border: 2px dashed #ccc;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Status Messages */
.status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

.modal-content h2 {
    color: #006d8c;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.modal-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.modal-benefits {
    background: #e8f4f8;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.benefit-item {
    padding: 10px 0;
    color: #333;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.modal-footer p {
    color: #999;
    font-size: 14px;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .login-container {
        margin: 40px auto;
        padding: 30px 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .logout-btn {
        position: static;
        margin-bottom: 15px;
        width: 100%;
    }
}