/* /opt/projetos/engenharia/RuleGuard/static/css/style.css */

:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --greg-color: #FFD700; /* Amarelo ouro - uma opção */
    --greg-dark: #e6c300; /* Tom mais escuro para hover */
    /* Ou se preferir amarelo puro: */
    /* --greg-color: #FFFF00; */
    /* --greg-dark: #e6e600; */
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --gray-light: #e9ecef;
    --gray-medium: #adb5bd;
    --gray-dark: #495057;
    --success-color: #27ae60;
    --white-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #2c3e50, #4a6491);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 0.95rem;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.1);
}

.nav-user {
    position: relative;
    margin-left: 0.5rem;
}

.user-name {
    color: white;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: background 0.3s;
}

.user-name:hover {
    background: rgba(255,255,255,0.2);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 0.5rem 0;
    display: none;
    z-index: 1001;
}

.nav-user:hover .user-dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: var(--light-color);
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0.5rem 0;
}

.logout {
    color: var(--danger-color);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 1.5rem;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    border: 1px solid transparent;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.flash-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Main Content */
.main-content {
    min-height: 60vh;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-subtitle {
    color: var(--gray-color);
    margin-top: 0.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-greg {
    background: var(--greg-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-greg:hover {
    background: var(--greg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 195, 0, 0.4); /* Ajustado para amarelo */
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: var(--gray-color);
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-login {
    width: 100%;
    margin-top: 1rem;
}

.login-options {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.welcome-message {
    color: var(--gray-color);
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
    border: 1px solid var(--gray-light);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    color: var(--gray-medium);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-color);
    line-height: 1;
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.section-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    border: 1px solid var(--gray-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

.section-header h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    text-decoration: underline;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.recent-item:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.recent-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.recent-info h4 a {
    color: var(--dark-color);
    text-decoration: none;
}

.recent-info h4 a:hover {
    color: var(--primary-color);
}

.recent-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.recent-meta .date {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--gray-light);
}

.quick-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.quick-action i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quick-action span {
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    min-width: 200px;
    border: 1px solid var(--gray-light);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.action-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-medium);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-light);
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.page-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    margin: 0;
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.page-header .breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

.page-header .breadcrumb .separator {
    color: var(--gray-color);
}

.page-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(90deg, var(--primary-color), #667eea);
}

.data-table th {
    padding: 1.2rem 1.5rem;
    text-align: left;
    color: white;
    font-weight: 600;
    border: none;
    font-size: 0.95rem;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--gray-light);
    transition: background 0.3s;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table td {
    padding: 1.2rem 1.5rem;
    vertical-align: middle;
}

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-view {
    background: var(--info-color);
    color: white;
}

.btn-view:hover {
    background: #138496;
    transform: scale(1.1);
}

.btn-edit {
    background: var(--warning-color);
    color: white;
}

.btn-edit:hover {
    background: #e0a800;
    transform: scale(1.1);
}

.btn-delete {
    background: var(--danger-color);
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: scale(1.1);
}

.inline-form {
    display: inline;
}

.empty-table {
    text-align: center;
    padding: 3rem !important;
    color: var(--gray-medium);
}

.empty-table i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-light);
}

/* Table stats */
.table-stats {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--gray-light);
}

.table-stats p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #d68910;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.badge-secondary {
    background: rgba(149, 165, 166, 0.1);
    color: var(--gray-color);
    border: 1px solid rgba(149, 165, 166, 0.2);
}

.badge-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.badge-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.badge-light { 
    background-color: #f8f9fa; 
    color: #212529; 
    border: 1px solid #dee2e6; 
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Status badges específicos para projetos */
.status-iniciado {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-construcao {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-concluido {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-inativo {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Forms */
.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-light);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group label.required:after {
    content: '*';
    color: var(--danger-color);
    margin-left: 4px;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-control[readonly],
.form-control[disabled] {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.8;
}

.form-text {
    color: var(--gray-medium);
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-text i {
    color: var(--info-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
    flex-wrap: wrap;
}

/* Profile */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.profile-header {
    background: linear-gradient(90deg, var(--primary-color), #667eea);
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-info h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.profile-username {
    opacity: 0.9;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.profile-details {
    padding: 2.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--gray-dark);
}

.detail-value {
    color: var(--dark-color);
    font-weight: 250;
    text-align: left;
}

/* Estilos para Projetos e Famílias */
.project-details,
.family-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    border: 1px solid var(--gray-light);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

.detail-header h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Substitua a seção .detail-grid no seu CSS: */
.detail-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.detail-item {
    display: contents; /* Isso remove o container pai e faz os filhos participarem do grid */
}

.detail-label {
    text-align: right;
    font-weight: 600;
    color: var(--gray-dark);
    padding-right: 15px;
    white-space: nowrap;
}

.detail-value {
    text-align: left;
    color: var(--dark-color);
}

.description-box {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.description-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-box p {
    margin: 0;
    line-height: 1.6;
}

/* Process Range Visual */
.process-range {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
}

.range-numbers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
    color: var(--primary-color);
}

.range-visual {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    border-radius: 4px;
    position: relative;
    margin: 0 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid transparent;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Project Selector */
.project-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-light);
}

.project-selector label {
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    margin: 0;
    opacity: 0.8;
}

/* Botões adicionais */
.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-icon.btn-success {
    background: var(--success-color);
}

.btn-icon.btn-success:hover {
    background: #218838;
    transform: scale(1.1);
}
/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-item {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
    
    .nav-user {
        width: 100%;
        margin-left: 0;
    }
    
    .user-name {
        justify-content: center;
        width: 100%;
    }
    
    .user-dropdown {
        width: 100%;
        right: auto;
        left: 0;
    }
    
    .container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .page-actions {
        justify-content: center;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-label {
        min-width: 120px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .table-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .actions {
        justify-content: center;
    }
    
    .project-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .project-info {
        justify-content: center;
        text-align: center;
    }
}


@media (max-width: 576px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-info h3 {
        text-align: center;
    }
    
    .recent-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .btn-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }

    .text-left {
        text-align: left;
    }

/* CSS específico para a tabela de Sources/Targets */

.section-card .table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.section-card .table {
    margin-bottom: 0;
    table-layout: fixed;
}

.section-card .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
}

.section-card .table td {
    padding: 8px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
    word-break: break-word;
    white-space: normal !important;
}

/* Linha de descritivo (segunda linha) */
.section-card .table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.section-card .table tbody tr:nth-child(even) td {
    border-top: none;
    padding-left: 40px;
    padding-right: 40px;
}

/* Para garantir que o texto longo quebre corretamente */
.section-card .table td div {
    min-width: 0; /* Permite que o texto quebre */
}

/* Badges na tabela - mais compactos */
.section-card .table .badge {
    padding: 4px 8px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-block;
}

/* Ajuste para botões na tabela */
.section-card .table .btn-group {
    display: flex;
    gap: 4px;
}

.section-card .table .btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Larguras específicas das colunas para evitar sobreposição */
.section-card .table th:nth-child(1),
.section-card .table td:nth-child(1) {
    width: 80px; /* Tipo */
}

.section-card .table th:nth-child(2),
.section-card .table td:nth-child(2) {
    width: 80px; /* Formato */
}

.section-card .table th:nth-child(3),
.section-card .table td:nth-child(3) {
    width: 25%; /* Nome */
}

.section-card .table th:nth-child(4),
.section-card .table td:nth-child(4) {
    width: 25%; /* Arquivo BAD */
}

.section-card .table th:nth-child(5),
.section-card .table td:nth-child(5) {
    width: 100px; /* Criado em */
}

.section-card .table th:nth-child(6),
.section-card .table td:nth-child(6) {
    width: 100px; /* Ações */
}

/* Estilo para código (arquivos) */
.section-card .table code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
        .section-card .table {
            table-layout: auto;
        }
        
        .section-card .table th:nth-child(1),
        .section-card .table td:nth-child(1),
        .section-card .table th:nth-child(2),
        .section-card .table td:nth-child(2),
        .section-card .table th:nth-child(5),
        .section-card .table td:nth-child(5),
        .section-card .table th:nth-child(6),
        .section-card .table td:nth-child(6) {
            width: auto;
        }
        
        .section-card .table th:nth-child(3),
        .section-card .table td:nth-child(3),
        .section-card .table th:nth-child(4),
        .section-card .table td:nth-child(4) {
            min-width: 150px;
        }
    }
}