/* Modern Master Panel Design - Glassmorphism & Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* Colors */
    --bg-body: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --border-color: rgba(148, 163, 184, 0.1);

    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --primary-solid: #6366f1;
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modal Core Fix */
.modal {
    display: none !important;
    /* Force hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker backdrop */
    backdrop-filter: blur(8px);
    /* Stronger blur */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex !important;
    /* Force flex when active */
    opacity: 1;
}

.modal-content {
    background: #1e293b;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    /* Larger radius */
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Pop effect */
    overflow: hidden;
    /* Ensure rounded corners clip content */
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.btn-close {
    background: rgba(255, 255, 255, 0.05);
    /* Visible close button bg */
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    transform: rotate(90deg);
}

/* CRM Templates - 3D Interactive Cards */
.template-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    /* Optimised for square look */
    perspective: 1000px;
    /* Enable 3D space */
}

.template-item {
    aspect-ratio: 1;
    /* Perfectly square */
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.template-item:hover {
    transform: translateY(-8px) rotateX(5deg);
    /* Lift and Tilt */
    background: linear-gradient(145deg, rgba(40, 50, 70, 0.8), rgba(20, 30, 50, 0.9));
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(99, 102, 241, 0.3);
    /* Glow shadow */
}

.template-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.template-item:hover::before {
    opacity: 1;
}

/* 3D Icon Container */
.template-item div:first-child {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    transform: translateZ(20px);
    /* Push icon forward in 3D space */
}

.template-item:hover div:first-child {
    transform: translateZ(30px) scale(1.1);
    background: rgba(99, 102, 241, 0.2);
    color: white;
}

.template-item strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transform: translateZ(10px);
    /* Push text slightly forward */
    transition: color 0.3s;
    line-height: 1.2;
}

.template-item.selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-solid);
    box-shadow: 0 0 0 2px var(--primary-solid), 0 10px 15px -3px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.template-item.selected strong {
    color: white;
}


body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* Page Config */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-info h3,
.stat-value,
.number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.stat-info p,
.stat-label,
.label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn,
.btn-primary,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary,
.action-card:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Tables */
.card-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

.table,
.services-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

.table th,
.services-table th {
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
}

.table td,
.services-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

.table tr:hover td,
.services-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge,
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-ativa,
.status-badge.running,
.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pendente,
.status-badge.warning,
.status-badge.pending_payment {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-cancelada,
.status-badge.stopped,
.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-bloqueada,
.status-badge.blocked {
    background: rgba(71, 85, 105, 0.4);
    color: #cbd5e1;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

/* Quick Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Global Premium Card Style */
.card,
.stat-card,
.action-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle glass border */
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover,
.stat-card:hover,
.action-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Top Glow for All Cards */
.card::before,
.stat-card::before,
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.5;
    transition: opacity 0.3s, height 0.3s;
}

.card:hover::before,
.stat-card:hover::before,
.action-card:hover::before {
    opacity: 1;
    height: 3px;
}

/* Specific Card Adjustments */
.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.action-card {
    text-align: center;
    display: block;
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s;
}

.action-card:hover .action-icon {
    transform: translateY(-5px) scale(1.1);
}

.action-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

.action-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal TextArea Size Fix */
#mensagemPreview {
    height: 180px !important;
    /* Force larger height */
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 1rem;
    font-family: inherit;
    resize: vertical;
}

#mensagemPreview:focus {
    border-color: var(--primary-solid);
    background: rgba(15, 23, 42, 0.8);
    outline: none;
}

/* Responsive adjustments */
/* Responsive adjustments */
@media (max-width: 768px) {

    /* Navigation */
    .nav-container {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }

    .nav-brand {
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
        width: 100%;
        gap: 0.25rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
    }

    /* Layout & Typos */
    .container {
        padding: 1rem;
        width: 100%;
        overflow-x: hidden;
        /* Prevent horizontal scroll on body */
    }

    .page-header,
    .header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        align-items: center;
    }

    .page-header h1,
    .header h1 {
        font-size: 1.5rem;
        justify-content: center;
        text-align: center;
    }

    /* Grids to Single Column */
    .stats-grid,
    .dashboard-grid,
    .charts-grid,
    .form-grid,
    .actions-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Filters (CRM, Empresas) */
    .filter-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .filter-bar>div {
        width: 100% !important;
        min-width: 0 !important;
    }

    .filter-bar input,
    .filter-bar select,
    .filter-bar button {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Cards */
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    .card,
    .stat-card,
    .action-card {
        padding: 1.25rem;
    }

    /* Tables */
    .card-table-wrapper {
        margin: 0 -1rem;
        /* Negative margin to let table touch edges */
        padding: 0 1rem;
        width: calc(100% + 2rem);
    }

    .table,
    .services-table {
        font-size: 0.8rem;
        min-width: 600px;
        /* Ensure internal scroll works */
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevent iOS zoom */
        padding: 0.8rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        justify-content: center;
    }

    /* Specific Adjustments */
    .stat-card {
        flex-direction: row;
        /* Keep icon and text side-by-side even on mobile if possible, or stack if too small */
        align-items: center;
        text-align: left;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
        margin-right: 1rem;
    }

    .refresh-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* CRM Charts */
    .chart-card {
        padding: 0.5rem;
    }

    .chart-card canvas {
        max-height: 250px !important;
    }
}

.text-muted {
    color: var(--text-muted);
}

.mt-20 {
    margin-top: 20px;
}

input,
select {
    background: #0f172a !important;
    /* Force dark bg */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-solid);
}

/* VPS Specifics */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

.progress-fill.cpu {
    background: #3b82f6;
}

.progress-fill.memory {
    background: #8b5cf6;
}

.progress-fill.disk {
    background: #f59e0b;
}

.stat-card.cpu {
    border-left: 4px solid #3b82f6;
}

.stat-card.memory {
    border-left: 4px solid #8b5cf6;
}

.stat-card.disk {
    border-left: 4px solid #f59e0b;
}

.stat-card.uptime {
    border-left: 4px solid #10b981;
}

.logs-container {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid var(--border-color);
    color: #cbd5e1;
}

.refresh-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-solid);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.refresh-btn:hover {
    transform: scale(1.05);
}

.loading {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* CRM Specific Colors & Utilities */
.stat-card.blue {
    border-left: 4px solid #3b82f6;
}

.stat-card.blue .stat-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.stat-card.orange {
    border-left: 4px solid #f59e0b;
}

.stat-card.orange .stat-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.stat-card.green {
    border-left: 4px solid #10b981;
}

.stat-card.green .stat-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.stat-card.red {
    border-left: 4px solid #ef4444;
}

.stat-card.red .stat-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.stat-card.purple {
    border-left: 4px solid #8b5cf6;
}

.stat-card.purple .stat-icon {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.stat-card.gold {
    border-left: 4px solid #fbbf24;
}

.stat-card.gold .stat-icon {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.stat-card.dark {
    border-left: 4px solid #94a3b8;
}

/* Terminal Logs - CMD Style */
.logs-container {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #333;
    height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.logs-container::-webkit-scrollbar {
    width: 10px;
    background: #111;
}

.logs-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 0;
    border: 1px solid #000;
}

@media (max-width: 768px) {
    .logs-container {
        height: 60vh;
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}



.bg-orange {
    background-color: #f59e0b;
}

.bg-green {
    background-color: #10b981;
}

.bg-red {
    background-color: #ef4444;
}

/* CRM Company Item */
.company-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.company-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.company-item:last-child {
    border-bottom: none;
}

.company-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Responsive Charts */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}


/* Form & Support Config Utilities */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group label i {
    margin-right: 0.5rem;
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* Button Variants */
.btn-success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.btn-info:hover {
    background: rgba(59, 130, 246, 0.4);
}

.btn-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-success {
    color: var(--success);
}

.text-primary {
    color: var(--info);
}

.text-info {
    color: #38bdf8;
}

.text-warning {
    color: var(--warning);
}

.p-4 {
    padding: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}


/* Login Page Specifics */
body.login-page {
    justify-content: center;
    align-items: center;
    background: var(--bg-body);
    background-image: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.15), transparent 40%);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}