/* Webdy Painel do Cliente - Design System Moderno */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --secondary: #1e40af;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #ffffff;
    --dark: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* App-like shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER STYLES ===== */
        .header {
            background: var(--light);
            border-bottom: 1px solid var(--gray-200);
            box-shadow: none;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 1000 !important;
            height: 120px;
            transition: all 0.3s ease;
        }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    position: relative;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: absolute;
    left: 1.5rem;
}

/* Desktop - ajustar posição do logo */
@media (min-width: 769px) {
    .logo-brand {
        left: 1.5rem;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .hamburger-menu {
        display: none !important;
    }
}

.logo-small {
    width: 150px;
    height: 150px;
    background: url('https://m3.webdy.com.br/images/w.png') no-repeat center;
    background-size: contain;
    transition: all 0.3s ease;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    right: 1.5rem;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    margin-right: 1rem;
}

/* Desktop - esconder hamburger */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }
}

.hamburger-menu:hover {
    background: var(--gray-100);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.user-info span {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    white-space: nowrap;
}

.logout-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== CONTAINER LAYOUT ===== */
.container {
        display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 80px !important;
    gap: 0;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    width: 280px;
    background: var(--light);
    border-right: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 120px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 999;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
        left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

.sidebar ul {
    list-style: none;
    padding: 0 1rem;
}

.sidebar li {
    margin-bottom: 4px;
}

.sidebar a {
    color: var(--gray-700);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.sidebar a span {
    display: block;
    color: inherit;
}

.sidebar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.sidebar a:hover::before {
    left: 100%;
}

.sidebar a:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.sidebar a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.sidebar a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 2rem;
    background: transparent;
    min-height: calc(100vh - 120px);
    margin-top: 120px;
}

/* ===== CARD COMPONENTS ===== */
.card {
    background: var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-ativa, .status-pago {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.status-cancelada, .status-atrasado {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.status-suspensa, .status-pendente {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--light);
    color: var(--gray-800);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 14px;
    color: var(--gray-700);
}

tr:hover {
    background: var(--gray-50);
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: var(--primary);
    color: #1e40af;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: var(--danger);
    color: #991b1b;
}

/* ===== INFO GRID ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    background: linear-gradient(135deg, var(--light) 0%, var(--gray-50) 100%);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.info-label {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}

/* ===== NO DATA STATE ===== */
.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.no-data i {
    font-size: 64px;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: var(--primary);
}

.no-data h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-600);
}

.no-data p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ===== MOBILE RESPONSIVE ===== */
        @media (max-width: 768px) {
    .header {
        height: 120px;
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .header-content {
        justify-content: center !important;
        align-items: center;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .hamburger-menu {
        order: 1;
        position: relative;
        flex-shrink: 0;
    }
    
    .logo-brand {
        order: 2;
        position: relative !important;
        left: auto !important;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .user-info {
        order: 3;
        position: relative !important;
        right: auto !important;
        flex-shrink: 0;
    }
    
    .logo-small {
        width: 150px;
        height: 150px;
    }
    
    .user-info span {
        display: none;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .logout-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
            .container {
                flex-direction: column;
                margin-top: 120px !important;
            }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        border-right: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        background: var(--light) !important;
        opacity: 0;
        visibility: hidden;
    }
    
    .sidebar.active {
        left: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .sidebar-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Forçar cores no menu mobile */
    .sidebar ul {
        background: var(--light) !important;
    }
    
    .sidebar li {
        background: transparent !important;
    }
    
    .sidebar ul {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0;
        padding-top: 140px;
        gap: 0;
    }
    
    .sidebar li {
        margin: 0;
        flex-shrink: 0;
    }
    
    .sidebar a {
        white-space: nowrap;
        padding: 12px 20px;
        border-radius: 0;
        font-size: 14px;
        min-width: auto;
        text-align: left;
        flex-direction: row;
        gap: 12px;
        border-bottom: 1px solid var(--gray-100);
        display: flex;
        align-items: center;
        color: var(--gray-700) !important;
        background: transparent !important;
    }
    
    .sidebar a:hover {
        background: var(--gray-100) !important;
        color: var(--primary) !important;
    }
    
    .sidebar a i {
        width: 20px;
        font-size: 16px;
        flex-shrink: 0;
        color: inherit;
    }
    
    .sidebar a span {
        font-size: 14px;
        color: inherit;
        display: block;
    }
    
    .mobile-logout {
        padding-top: 1rem;
    }
    
    .main-content {
        padding: 1rem;
        width: 100%;
    }
    
    .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: var(--radius);
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .info-value {
        font-size: 20px;
    }
    
    table {
        font-size: 12px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Correção específica para menu mobile */
    @media (max-width: 768px) {
        .sidebar {
            background: white !important;
        }
        
        .sidebar ul {
            background: white !important;
        }
        
        .sidebar a {
            color: #374151 !important;
            background: transparent !important;
        }
        
        .sidebar a:hover {
            background: #f3f4f6 !important;
            color: #3b82f6 !important;
        }
        
        .sidebar a i {
            color: inherit !important;
        }
        
        .sidebar a span {
            color: inherit !important;
        }
    }
}

        @media (max-width: 480px) {
    .header {
        height: 120px;
        padding: 0 0.75rem;
    }
    
    .header-content {
        padding: 0 0.75rem;
    }
    
    .logo-small {
        width: 150px;
        height: 150px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .logout-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
            .container {
                margin-top: 60px !important;
            }
    
    .sidebar {
        padding: 0.25rem 0;
    }
    
    .sidebar ul {
        padding: 0 0.5rem;
        gap: 0.25rem;
    }
    
    .sidebar a {
        padding: 8px 12px;
        font-size: 11px;
        min-width: 80px;
    }
    
    .sidebar a i {
        width: 16px;
        font-size: 14px;
    }
    
    .sidebar a span {
        font-size: 10px;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border-radius: var(--radius);
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .info-value {
        font-size: 18px;
    }
    
    table {
        font-size: 11px;
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray-600); }
.text-white { color: white; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }