/**
 * Modern Facelift Styles
 * Sistema de Gestão de Franquias
 *
 * Paleta de cores:
 * - Verde primário: #28a745, #20c997
 * - Cinza escuro: #2d3748, #1a202c, #4a5568
 * - Cinza médio: #718096
 * - Cinza claro: #e2e8f0, #f0f0f0, #f8f9fa
 * - Texto: #2d3748
 */

/* ========================================
   HEADERS E TÍTULOS
   ======================================== */

.profile-header,
.page-header-modern,
.settings-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile-header h2,
.page-header-modern h2,
.settings-header h2 {
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 28px;
}

.profile-header p,
.page-header-modern p,
.settings-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 15px;
}

.profile-header .subtitle,
.page-header-modern .subtitle {
    opacity: 0.9;
    font-size: 16px;
    margin-bottom: 15px;
}

.profile-badge,
.status-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   CARDS MODERNOS
   ======================================== */

.modern-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.modern-card h5,
.modern-card .card-title {
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-card h5 i,
.modern-card .card-title i {
    color: #28a745;
    font-size: 22px;
}

/* Card com gradiente verde */
.modern-card-green {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.modern-card-green h5,
.modern-card-green .card-title {
    color: white;
}

/* Card com gradiente cinza */
.modern-card-gray {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
}

.modern-card-gray h5,
.modern-card-gray .card-title {
    color: white;
}

/* ========================================
   INFO ROWS (Linhas de Informação)
   ======================================== */

.info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 10px;
    margin-right: 15px;
    font-size: 16px;
    flex-shrink: 0;
}

.info-row .info-content {
    flex: 1;
}

.info-row .info-label {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row .info-value {
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
    margin-top: 2px;
}

/* ========================================
   FORMULÁRIOS
   ======================================== */

.modern-form,
.password-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.modern-form .form-group label,
.password-form .form-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 8px;
}

.modern-form .form-control,
.password-form .form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.modern-form .form-control:focus,
.password-form .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* ========================================
   BOTÕES
   ======================================== */

.btn-modern,
.btn-modern-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-modern:hover,
.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-modern-secondary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.3);
}

.btn-modern-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.4);
    color: white;
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: 600;
    color: #28a745;
    transition: all 0.3s ease;
}

.btn-modern-outline:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
}

.btn-modern-lg {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.btn-modern-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
    color: white;
}

/* ========================================
   CARDS DE INTEGRAÇÃO / DESTAQUE
   ======================================== */

.integration-card,
.highlight-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.3);
}

.integration-card h5,
.highlight-card h5 {
    color: white;
    margin-bottom: 15px;
}

.integration-card p,
.highlight-card p {
    opacity: 0.95;
    font-size: 14px;
}

.integration-info,
.highlight-info {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.integration-info .info-item,
.highlight-info .info-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-weight: 500;
}

.integration-info .info-item i,
.highlight-info .info-item i {
    margin-right: 10px;
    font-size: 10px;
}

.integration-link,
.highlight-link {
    display: inline-block;
    background: white;
    color: #2d3748;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.integration-link:hover,
.highlight-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    color: #28a745;
    text-decoration: none;
}

/* ========================================
   STATS / MÉTRICAS
   ======================================== */

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 15px;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-icon.secondary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    color: #2d3748;
    font-weight: 700;
    line-height: 1;
}

.stat-change {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

/* ========================================
   DIVIDERS
   ======================================== */

.section-divider {
    height: 3px;
    background: linear-gradient(90deg, #28a745 0%, transparent 100%);
    border: none;
    margin: 20px 0;
    border-radius: 10px;
}

.section-divider-gray {
    height: 3px;
    background: linear-gradient(90deg, #4a5568 0%, transparent 100%);
    border: none;
    margin: 20px 0;
    border-radius: 10px;
}

/* ========================================
   TABELAS MODERNAS
   ======================================== */

.modern-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.modern-table table {
    margin-bottom: 0;
}

.modern-table thead {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
}

.modern-table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: #f8f9fa;
}

.modern-table tbody td {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

/* ========================================
   BADGES E TAGS
   ======================================== */

.modern-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-badge.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.modern-badge.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.modern-badge.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.modern-badge.info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.modern-badge.secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* ========================================
   LISTAS
   ======================================== */

.modern-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-list-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modern-list-item:last-child {
    border-bottom: none;
}

.modern-list-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
}

.modern-list-item .list-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

/* ========================================
   ALERTAS MODERNOS
   ======================================== */

.modern-alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.modern-alert > i {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.modern-alert.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-left: 4px solid #28a745;
    color: #155724;
}

.modern-alert.success > i {
    color: #28a745;
}

.modern-alert.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left: 4px solid #ffc107;
    color: #856404;
}

.modern-alert.warning > i {
    color: #ffc107;
}

.modern-alert.danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(255, 87, 34, 0.1) 100%);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.modern-alert.danger > i {
    color: #dc3545;
}

.modern-alert.info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.modern-alert.info > i {
    color: #17a2b8;
}

/* ========================================
   PROGRESS BARS
   ======================================== */

.modern-progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 768px) {
    .profile-header,
    .page-header-modern {
        padding: 20px;
    }

    .profile-header h2,
    .page-header-modern h2 {
        font-size: 22px;
    }

    .modern-card {
        padding: 20px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-value {
        font-size: 24px;
    }
}
