/* 
 * Cliente Area Styles
 * Extends the main design system
 */

.cliente-body {
    background-color: #0d1117;
    min-height: 100vh;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1b2838 0%, #0d1117 100%);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.login-logo .logo-image {
    height: 80px;
    width: auto;
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-form {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.login-error {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
}

.login-footer a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.login-form .btn-primary,
.login-form .btn-outline {
    margin-top: 8px;
}

.login-form .btn-outline {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.login-form .btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.05);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Sidebar Styles */
.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav {
    padding: 24px 16px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(74, 144, 226, 0.1);
    color: var(--text-accent);
}

.link-icon {
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--glass-border);
}

/* Header Styles */
.page-title {
    font-size: 1.8rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.user-name {
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.status-success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cliente Layout */
.cliente-container {
    display: flex;
    min-height: 100vh;
}

.cliente-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.cliente-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-width: 0;
}

.cliente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

/* Sections */
.cliente-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.cliente-section.active {
    display: block;
}

/* Welcome Card */
.welcome-card {
    background: var(--gradient-main);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    color: white;
}

.welcome-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.welcome-card p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Dashboard Card */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
}

.dashboard-card h3 {
    margin-bottom: 24px;
    font-size: 1.2rem;
}

/* Compras List */
.compras-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compra-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.compra-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.compra-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.compra-info {
    flex: 1;
}

.compra-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.compra-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.compra-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.compra-status {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Section Header Bar */
.section-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Compras Grid */
.compras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.compra-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.compra-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.compra-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.compra-card-content {
    padding: 20px;
}

.compra-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.compra-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.compra-card-actions {
    display: flex;
    gap: 8px;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.payment-card:hover {
    border-color: var(--primary-color);
}

.payment-icon {
    font-size: 2.5rem;
}

.payment-info {
    flex: 1;
}

.payment-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.payment-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.payment-badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

.payment-badge.active {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

/* Info Box */
.info-box {
    padding: 20px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: var(--radius-md);
}

.info-box h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.info-box p {
    color: var(--text-secondary);
    margin: 0;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.download-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.download-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.download-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.download-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.download-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Suporte Grid */
.suporte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.contact-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.contact-form-card h3 {
    margin-bottom: 24px;
}

/* Perfil Cards */
.perfil-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 24px;
}

.perfil-card h3 {
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.link-secondary {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
}

.link-secondary:hover {
    text-decoration: underline;
}

.login-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--glass-border);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    background: var(--bg-card);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .cliente-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .cliente-sidebar.active {
        transform: translateX(0);
    }

    .cliente-main {
        margin-left: 0;
    }
}