@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: rgba(255, 87, 0, 0.15);
    --border-color-hover: rgba(255, 87, 0, 0.35);
    
    --primary: #FF5700; /* OrionX Vibrant Orange */
    --primary-hover: #e04d00;
    --primary-glow: rgba(255, 87, 0, 0.15);
    
    --accent: #ef4444; /* Red for trends or accents */
    --success: #10b981; /* Green for growth trend */
    
    --text-primary: #0f172a; /* Dark Slate for text readability */
    --text-muted: #475569; /* Slate Gray for secondary text */
    --text-dark: #ffffff; /* White text for high contrast on orange/black */
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 87, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 87, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 87, 0, 0.03) 0%, transparent 50%);
}

/* App Container Layout */
.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100vh;
}

/* Header Section */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    padding: 20px 32px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px var(--primary-glow);
}

.brand-info h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-info p {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* Assessment Meta Info */
.assessment-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.assessment-info i {
    color: var(--primary);
}

.assessment-info strong {
    color: var(--text-primary);
}

.meta-dot {
    color: rgba(255, 255, 255, 0.15);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.period-badge {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a !important; /* Cor do texto preta para alta legibilidade */
}

.period-badge i {
    color: var(--primary) !important;
}

.period-select-dropdown {
    background: transparent;
    border: none;
    color: #0f172a !important; /* Cor do texto preta para alta legibilidade */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    padding-right: 4px;
}

.period-select-dropdown option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-accent {
    background-color: #f97316;
    color: white;
}

.btn-accent:hover {
    background-color: #ea580c;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
    padding: 12px;
}

/* Mode Switcher Buttons */
.mode-switcher-container {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
    margin: 16px auto 0 auto;
}

.mode-btn {
    background: transparent;
    border: none;
    padding: 10px 24px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.mode-btn.active {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Dashboard Main Layout */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* View Panels Control */
.view-panel {
    display: none;
}

.view-panel.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.kpi-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.kpi-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: var(--transition);
}

.kpi-card:hover::before {
    background: var(--primary);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.kpi-title {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.kpi-icon.instagram,
.kpi-icon.youtube,
.kpi-icon.content {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    transition: var(--transition);
}

.kpi-card:hover .kpi-icon.instagram,
.kpi-card:hover .kpi-icon.youtube,
.kpi-card:hover .kpi-icon.content {
    background: rgba(255, 87, 0, 0.08);
    border-color: rgba(255, 87, 0, 0.2);
    color: var(--primary);
}

.kpi-value-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.kpi-trend {
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    border-radius: 50px;
}

.kpi-trend.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.kpi-trend.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent);
}

.kpi-badge {
    background: rgba(0, 0, 0, 0.05);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 600;
}

.kpi-footer {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 12px;
    margin-top: 4px;
}

.kpi-subtext strong {
    color: var(--text-primary);
}

.kpi-divider {
    margin: 0 8px;
    color: rgba(0, 0, 0, 0.1);
}

/* Shortcuts Card specific */
.shortcuts-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.shortcuts-card .kpi-header i {
    font-size: 20px;
    color: var(--primary);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.shortcut-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-btn.google-analytics {
    background: rgba(249, 115, 22, 0.05);
    color: #f97316;
}

.shortcut-btn.google-analytics:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: #f97316;
}

.shortcut-btn.clarity {
    background: rgba(99, 102, 241, 0.05);
    color: #818cf8;
}

.shortcut-btn.clarity:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
}

/* 2-Column Row Layout */
.content-row {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .content-row {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Sections */
.dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.section-title-wrapper i {
    color: var(--primary);
    font-size: 20px;
}

.section-title-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 12px;
}

/* Performance de Vídeos Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

/* Video Cell */
.video-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 87, 0, 0.14) !important;
    color: #FF5700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.video-info-text {
    display: flex;
    flex-direction: column;
}

.video-title-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.video-title-link:hover {
    color: var(--primary);
}

/* Growth Indicator Graph */
.growth-indicator {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}

.growth-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
}

.growth-bar-outer {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.growth-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 10px;
    width: 0%;
    transition: width 0.8s ease-in-out;
}

.action-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

.action-delete-btn:hover {
    color: var(--accent);
    background: rgba(239, 68, 68, 0.1);
}

/* Feed List (Right Column) */
.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.posts-feed::-webkit-scrollbar {
    width: 6px;
}

.posts-feed::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.post-item {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.post-item:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(255, 87, 0, 0.35);
}

.post-details {
    display: flex;
    gap: 12px;
    align-items: center;
}

.post-platform-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.post-platform-icon.instagram-feed,
.post-platform-icon.instagram-story {
    background: rgba(225, 48, 108, 0.16) !important;
    color: #e1306c !important;
}

.post-platform-icon.blog {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #3b82f6 !important;
}

.post-platform-icon.facebook {
    background: rgba(24, 119, 242, 0.16) !important;
    color: #1877f2 !important;
}

.post-platform-icon.other {
    background: rgba(148, 163, 184, 0.18) !important;
    color: #94a3b8 !important;
}

.post-info {
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.post-title:hover {
    color: var(--primary);
}

.post-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* History Intro Card */
.history-intro-card {
    background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.03));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .history-intro-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .accumulated-stats {
        width: 100%;
        justify-content: space-between;
    }
}

.intro-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.intro-left i {
    font-size: 36px;
    color: var(--primary);
    background: rgba(245, 158, 11, 0.08);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.intro-left h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.intro-left p {
    font-size: 13px;
    color: var(--text-muted);
}

.accumulated-stats {
    display: flex;
    gap: 32px;
}

.acc-stat-item {
    display: flex;
    flex-direction: column;
}

.acc-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.acc-val {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--success);
}

/* History Grid */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.history-month-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.history-month-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.history-month-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.history-month-card:hover::before {
    background: var(--primary);
}

.history-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.history-month-header h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.history-badge {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.history-month-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.history-stat-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-stat-label i {
    font-size: 16px;
}

.history-stat-value {
    font-weight: 700;
    color: var(--text-primary);
}

.history-stat-diff {
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    margin-left: 4px;
}

/* Tooltip/Hover content list */
.history-month-contents {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.contents-preview-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.contents-preview-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-month-card:hover .contents-preview-list {
    max-height: 120px;
    opacity: 1;
}

.contents-preview-item {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contents-preview-item i {
    font-size: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Modal Styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color-hover);
    width: 100%;
    max-width: 580px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.open .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h2 i {
    color: var(--primary);
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255, 255, 255, 0.02);
}

.modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    padding-bottom: 6px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: flex-end;
}

/* Footer info */
.app-footer-bar {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Brand Profile Panel (Instagram Premium Layout)
   ========================================================================== */
.brand-profile-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-card-main {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .profile-card-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
}

/* Instagram-style Ring for Avatar */
.profile-avatar-wrapper {
    flex-shrink: 0;
}

.profile-avatar-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(230, 104, 60, 0.25);
}



.profile-avatar-box {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1e293b;
    border: 4px solid var(--bg-main);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -1.5px;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
    overflow: hidden; /* Corrige recorte e enquadramento da imagem */
}

/* Profile Info Fields */
.profile-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.profile-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .profile-header-row {
        justify-content: center;
    }
}

.profile-username {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.profile-verified-badge {
    color: #3897f0;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.btn-instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0095f6;
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-instagram-link:hover {
    background: #1877f2;
    transform: translateY(-1px);
}

/* Stats Row */
.profile-stats-row {
    display: flex;
    gap: 40px;
}

@media (max-width: 768px) {
    .profile-stats-row {
        justify-content: center;
        gap: 24px;
    }
}

.profile-stat-item {
    font-size: 15px;
    color: #1e293b;
}

.profile-stat-item strong {
    font-size: 17px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-right: 4px;
    color: #0f172a;
}

.profile-stat-item span {
    color: #475569;
}

/* Bio Content Styling */
.profile-bio-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.profile-bio-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.profile-bio-category {
    font-size: 13.5px;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-bio-text {
    font-size: 14.5px;
    color: #1e293b !important;
    line-height: 1.6;
    margin-top: 8px;
}

.profile-bio-text p {
    margin-bottom: 6px;
    color: #1e293b !important;
    font-weight: 500 !important;
}

/* Detailed Grid */
.profile-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .profile-details-grid {
        grid-template-columns: 1fr;
    }
}

.profile-detail-card {
    background: #ffffff !important;
    border: 1px solid rgba(255, 87, 0, 0.15) !important;
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(255, 87, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.profile-detail-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 87, 0, 0.3);
    box-shadow: 0 12px 30px rgba(255, 87, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.profile-detail-card.font-highlight h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title-header i {
    color: var(--primary);
    font-size: 18px;
}

.card-subtitle-desc {
    font-size: 12.5px;
    color: #475569;
    margin-top: -8px;
}

.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 8px 0;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 87, 0, 0.02);
    border: 1px solid rgba(255, 87, 0, 0.08);
    padding: 14px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}

.detail-stat:hover {
    background: rgba(255, 87, 0, 0.05);
    border-color: rgba(255, 87, 0, 0.15);
}

.detail-label {
    font-size: 11px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.detail-val {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.card-footer-note {
    font-size: 12px;
    color: #475569;
    text-align: center;
    border-top: 1px solid rgba(255, 87, 0, 0.08);
    padding-top: 12px;
    font-weight: 500;
}

.card-footer-note strong {
    color: var(--primary);
}

/* Instagram Highlights Section */
.highlights-stories-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.story-highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.story-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    transition: var(--transition);
}

.story-highlight-item:hover .story-ring {
    transform: scale(1.05);
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.05);
}

.story-icon-box {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #121620;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.story-highlight-item:hover .story-icon-box {
    color: var(--primary);
}

.story-highlight-item span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.story-highlight-item:hover span {
    color: var(--text-primary);
}

/* Gestão de Marketing Card Styling */
.profile-marketing-card {
    justify-content: space-between;
}

.marketing-time-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 87, 0, 0.04);
    border: 1px solid rgba(255, 87, 0, 0.15);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    flex-grow: 1;
    margin: 8px 0;
}

.marketing-time-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.marketing-time-val {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

/* ==========================================================================
   Integrations Panel Styling (Página)
   ========================================================================== */
.integrations-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.integrations-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.integrations-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.integrations-icon-badge {
    width: 44px;
    height: 44px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.integrations-title-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.integrations-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* Tab Switcher */
.integrations-tab-switcher {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 12px;
}

.integration-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.integration-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.integration-btn.active {
    background: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Panel Body & Iframe Wrapper */
.integrations-frames-body {
    position: relative;
    width: 100%;
}

.integration-iframe-panel {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.integration-iframe-panel.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.integration-panel-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    gap: 16px;
}

.info-text-group h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.info-text-group p {
    font-size: 12.5px;
    color: var(--text-muted);
}

.iframe-display-box {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn-primary.btn-sm {
    padding: 8px 16px;
    font-size: 12.5px;
    border-radius: 6px;
}

/* ==========================================================================
   Admin Panel & Clerk Custom Styling
   ========================================================================== */
.admin-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#clerk-signin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.admin-console-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.admin-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.admin-user-info h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.admin-user-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-sub-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.admin-tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
    background: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.admin-tab-body {
    position: relative;
    width: 100%;
}

.admin-tab-content {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.admin-tab-content.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out forwards;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 87, 0, 0.15);
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.admin-management-columns {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-manage-section h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Menu de Módulos Globais */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-menu-item i {
    font-size: 18px;
    transition: var(--transition);
}

.sidebar-menu-item:hover {
    background: rgba(255, 87, 0, 0.05);
    border-color: rgba(255, 87, 0, 0.2);
    color: var(--text-primary);
}

.sidebar-menu-item.active {
    background: rgba(255, 87, 0, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.sidebar-menu-item.active i {
    color: var(--primary);
}

/* Modulos Views */
.module-view {
    display: none;
    flex-direction: column;
    gap: 24px;
}

.module-view.active {
    display: flex;
    animation: fadeIn 0.4s ease-in-out forwards;
}

/* Estilos de Monitoramento de Servidor */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.server-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.server-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.server-status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.server-progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.server-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.server-progress-fill.success {
    background: var(--success);
}

.server-progress-fill.warning {
    background: #eab308;
}

.server-progress-fill.danger {
    background: var(--accent);
}

/* Tabela de Credenciais */
.credentials-table td {
    font-family: monospace;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    padding: 4px;
}

.btn-icon:hover {
    color: var(--primary);
}



.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 900px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Inputs em Branco com Texto Escuro (Módulos Financeiros e Modais) */
#view-financeiro .form-group input,
#view-financeiro .form-group select,
.modal-backdrop .form-group input,
.modal-backdrop .form-group select {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

#view-financeiro .form-group input:focus,
#view-financeiro .form-group select:focus,
.modal-backdrop .form-group input:focus,
.modal-backdrop .form-group select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 87, 0, 0.15) !important;
}

#view-financeiro .form-group input::placeholder,
.modal-backdrop .form-group input::placeholder {
    color: #94a3b8 !important;
}

/* Ajuste específico para a lista interna do modal */
.modal-backdrop .data-table th {
    color: var(--text-primary);
}

/* Card de Monitoramento de Clientes (Estilo 3D Premium) */
.client-monitor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 992px) {
    .client-monitor-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 680px) {
    .client-monitor-grid {
        grid-template-columns: 1fr !important;
    }
}

.monitor-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.monitor-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 12px 24px -6px rgba(255, 87, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.monitor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(15px); /* Efeito de profundidade 3D */
}

.monitor-client-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Luz Indicadora Pulsação */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
}

.status-dot-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-dot-pulse.online {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}
.status-dot-pulse.online::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success);
    position: absolute;
    top: 0;
    left: 0;
    animation: pulseGlow 1.8s infinite ease-in-out;
}

.status-dot-pulse.offline {
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}
.status-dot-pulse.offline::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    position: absolute;
    top: 0;
    left: 0;
    animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}





