/*
==========================================
ESTILOS ADICIONAIS PARA PÁGINAS INTERNAS
==========================================
Complemento ao tema corporativo
*/

/* ==== CABEÇALHOS DE PÁGINAS ==== */
.page-title {
    background: linear-gradient(135deg, #1a171b 0%, #2a2a2a 100%);
    color: #ffffff;
    padding: 25px 20px;
    margin: -10px -20px 20px -20px;
    border-radius: 0;
    border-bottom: 4px solid #db001b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-title h3 {
    color: #ffffff;
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.page-title h3 i {
    margin-right: 15px;
    color: #db001b;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 8px;
}

/* ==== BREADCRUMB CORPORATIVO ==== */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    padding: 12px 20px;
    border-left: 4px solid #db001b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb > li + li:before {
    content: "▶";
    color: #db001b;
    font-weight: bold;
}

.breadcrumb > .active {
    color: #db001b;
    font-weight: 600;
}

/* ==== CARDS DE ESTATÍSTICAS ==== */
.stat-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px 20px;
    margin-bottom: 20px;
    border-left: 5px solid #db001b;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(219, 0, 27, 0.1) 0%, transparent 100%);
    border-radius: 0 15px 0 80px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-left-color: #b50017;
}

.stat-card .stat-icon {
    font-size: 48px;
    color: #db001b;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1a171b;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-label {
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* ==== TABELAS CORPORATIVAS ==== */
.corporate-table {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.corporate-table .table-header {
    background: linear-gradient(135deg, #1a171b 0%, #2a2a2a 100%);
    color: #ffffff;
    padding: 20px;
    border-bottom: 3px solid #db001b;
}

.corporate-table .table-header h4 {
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.corporate-table .table-header h4 i {
    margin-right: 10px;
    color: #db001b;
}

.corporate-table table {
    margin: 0;
}

.corporate-table thead th {
    background: linear-gradient(135deg, #db001b 0%, #b50017 100%);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
    border: none;
    font-size: 12px;
}

.corporate-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.corporate-table tbody tr:hover {
    background: rgba(219, 0, 27, 0.05);
}

.corporate-table tbody tr:hover td {
    color: #db001b;
    font-weight: 600;
}

/* ==== FORMULÁRIOS CORPORATIVOS ==== */
.corporate-form {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #db001b;
}

.corporate-form .form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.corporate-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.corporate-form .section-title {
    color: #1a171b;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.corporate-form .section-title i {
    margin-right: 10px;
    color: #db001b;
    background: rgba(219, 0, 27, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.corporate-form .form-group label {
    color: #1a171b;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.corporate-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.corporate-form .form-control:focus {
    border-color: #db001b;
    box-shadow: 0 0 0 0.2rem rgba(219, 0, 27, 0.15);
    background: #ffffff;
}

/* ==== BOTÕES DE AÇÃO ==== */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn-corporate {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-corporate-primary {
    background: linear-gradient(135deg, #db001b 0%, #b50017 100%);
    color: #ffffff;
}

.btn-corporate-primary:hover {
    background: linear-gradient(135deg, #b50017 0%, #8b0013 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 0, 27, 0.3);
    color: #ffffff;
}

.btn-corporate-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #ffffff;
}

.btn-corporate-secondary:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-corporate-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #ffffff;
}

.btn-corporate-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ==== ALERTAS CORPORATIVOS ==== */
.alert-corporate {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 5px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.alert-corporate-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9) 0%, rgba(30, 126, 52, 0.9) 100%);
    border-left-color: #28a745;
    color: #ffffff;
}

.alert-corporate-danger {
    background: linear-gradient(135deg, rgba(219, 0, 27, 0.9) 0%, rgba(181, 0, 23, 0.9) 100%);
    border-left-color: #db001b;
    color: #ffffff;
}

.alert-corporate-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9) 0%, rgba(227, 171, 6, 0.9) 100%);
    border-left-color: #ffc107;
    color: #1a171b;
}

.alert-corporate-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9) 0%, rgba(17, 122, 139, 0.9) 100%);
    border-left-color: #17a2b8;
    color: #ffffff;
}

/* ==== MODAL CORPORATIVO ==== */
.modal-corporate .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-corporate .modal-header {
    background: linear-gradient(135deg, #1a171b 0%, #2a2a2a 100%);
    color: #ffffff;
    border-bottom: 3px solid #db001b;
    padding: 20px 25px;
}

.modal-corporate .modal-title {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.modal-corporate .modal-title i {
    margin-right: 10px;
    color: #db001b;
}

.modal-corporate .modal-body {
    padding: 25px;
    background: #ffffff;
}

.modal-corporate .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
}

/* ==== DASHBOARD WIDGETS ==== */
.dashboard-widget {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #db001b;
    position: relative;
    overflow: hidden;
}

.dashboard-widget:before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(219, 0, 27, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
}

.dashboard-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dashboard-widget .widget-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.dashboard-widget .widget-icon {
    background: linear-gradient(135deg, #db001b 0%, #b50017 100%);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(219, 0, 27, 0.3);
}

.dashboard-widget .widget-title {
    color: #1a171b;
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}

.dashboard-widget .widget-subtitle {
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ==== PROGRESS BARS CORPORATIVOS ==== */
.progress-corporate {
    height: 12px;
    background: #f0f0f0;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-corporate .progress-bar {
    background: linear-gradient(135deg, #db001b 0%, #b50017 100%);
    border-radius: 25px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-corporate .progress-bar:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==== BADGES CORPORATIVOS ==== */
.badge-corporate {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.badge-corporate-primary {
    background: linear-gradient(135deg, #db001b 0%, #b50017 100%);
    color: #ffffff;
}

.badge-corporate-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #ffffff;
}

.badge-corporate-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e3ab06 100%);
    color: #1a171b;
}

.badge-corporate-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    color: #ffffff;
}

/* ==== LOADING STATES ==== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 23, 27, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(219, 0, 27, 0.3);
    border-top: 4px solid #db001b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==== RESPONSIVIDADE ==== */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-widget {
        margin-bottom: 15px;
    }
    
    .stat-card {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .corporate-form {
        padding: 20px 15px;
    }
}