/* assets/css/style.css - Estilos básicos */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --error-color: #e74c3c;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.app-footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-danger {
    background-color: var(--error-color);
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

.hero {
    text-align: center;
    padding: 50px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.cta-buttons {
    margin-top: 30px;
}

.cta-buttons .btn {
    margin: 0 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.model-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.model-card {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.model-preview {
    height: 150px;
    margin-bottom: 15px;
    border: 1px dashed #ccc;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.documents-table th,
.documents-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.documents-table th {
    background-color: var(--light-color);
}

.actions {
    white-space: nowrap;
}

.empty-message {
    text-align: center;
    margin: 40px 0;
    color: #7f8c8d;
}

/* Estilos para o header */
.main-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

.logo span {
    margin-left: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* Dropdown do usuário */
.user-dropdown {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
    display: none;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #333;
    padding: 8px 15px;
    display: block;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.dropdown-menu i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* Mensagens flash */
.flash-message {
    padding: 15px 0;
    color: white;
}

.flash-success {
    background-color: #27ae60;
}

.flash-error {
    background-color: #e74c3c;
}

.flash-info {
    background-color: #3498db;
}

.flash-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 15px;
}

/* Responsivo */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2c3e50;
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav a {
        padding: 15px;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .nav-active .nav-list {
        display: flex;
    }
}