/**
 * Restu Media — Modern Hosting Client Area Dashboard Stylesheet
 */

/* 1. Layout & Wrapper */
.woocommerce-account {
    background-color: #f8fafc;
}

.woocommerce-account .page-header {
    background: linear-gradient(135deg, #0f4c8a 0%, #1e3a8a 100%) !important;
}

/* Override Theme Container to make the dashboard wide and spacious */
.woocommerce-account .site-main,
.woocommerce-account .ast-container,
.woocommerce-account .container,
.woocommerce-account .wrap,
.woocommerce-account .content-area {
    max-width: 1300px !important;
    width: 100% !important;
    padding: 20px 15px 60px !important;
    margin: 0 auto !important;
}

/* My Account Wrapper */
.woocommerce-account .woocommerce {
    max-width: 1250px !important;
    width: 100% !important;
    margin: 10px auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 2. Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    flex: 1 1 260px;
    max-width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    height: fit-content;
    border: 1px solid #f1f5f9;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Sidebar Menu Icons */
.woocommerce-MyAccount-navigation li a::before {
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.3s;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "📊"; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before { content: "💳"; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a::before { content: "🚀"; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "👤"; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "🚪"; }

/* Hover & Active States */
.woocommerce-MyAccount-navigation li a:hover {
    background-color: #f1f5f9;
    color: #0f4c8a;
    transform: translateX(4px);
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: linear-gradient(135deg, #0f4c8a 0%, #1e3a8a 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 76, 138, 0.2);
}

.woocommerce-MyAccount-navigation li.is-active a::before {
    transform: scale(1.1);
}

/* 3. Main Content Area */
.woocommerce-MyAccount-content {
    flex: 3 1 600px;
    background: transparent;
    min-height: 400px;
}

/* 4. Custom Dashboard Styles */
.clientarea-dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Welcome Banner */
.clientarea-welcome {
    background: linear-gradient(135deg, #0f4c8a 0%, #1e3a8a 100%);
    border-radius: 16px;
    padding: 30px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(15, 76, 138, 0.15);
    position: relative;
    overflow: hidden;
}

.clientarea-welcome::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.welcome-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.welcome-text p {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

.welcome-badge span {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

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

.clientarea-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 15px;
    background: #f1f5f9;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.clientarea-card.card-active { border-top: 4px solid #10b981; }
.clientarea-card.card-active .card-icon { background: #ecfdf5; }

.clientarea-card.card-pending { border-top: 4px solid #f59e0b; }
.clientarea-card.card-pending .card-icon { background: #fffbeb; }

.clientarea-card.card-total { border-top: 4px solid #3b82f6; }
.clientarea-card.card-total .card-icon { background: #eff6ff; }

.card-info h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.card-number {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.card-number.text-highlight {
    color: #ef4444;
}

.card-info p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 20px 0;
}

.card-action {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #0f4c8a;
    text-decoration: none;
    transition: color 0.2s;
}

.card-action:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Rows & Columns */
.clientarea-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.clientarea-col-left {
    flex: 2 1 500px;
}

.clientarea-col-right {
    flex: 1 1 300px;
}

/* Sections & Tables */
.clientarea-section-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.clientarea-section-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quick Order Buttons */
.quick-order-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-quick {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.btn-vps {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.btn-vpn {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.btn-quick .btn-icon {
    font-size: 24px;
    background: #ffffff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.btn-quick .btn-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.btn-quick:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.btn-vps:hover {
    background: #dcfce7;
}

.btn-vpn:hover {
    background: #dbeafe;
}

/* Elegant Table Design */
.table-responsive {
    overflow-x: auto;
}

.clientarea-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.clientarea-table th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.clientarea-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.clientarea-table tr:last-child td {
    border-bottom: none;
}

.clientarea-table tbody tr:hover {
    background-color: #f8fafc;
}

.btn-table-view {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-table-view:hover {
    background: #0f4c8a;
    color: #ffffff;
}

/* Modern Badges for Status */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed, .status-processing {
    background-color: #dcfce7;
    color: #15803d;
}

.status-pending, .status-on-hold {
    background-color: #fef3c7;
    color: #b45309;
}

.status-failed, .status-cancelled {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Support Card & Channels */
.card-support {
    background: linear-gradient(to bottom, #ffffff, #fafafa);
}

.support-channels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.channel-link, .channel-static {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.channel-link {
    text-decoration: none;
    transition: all 0.3s;
}

.channel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.wa-channel {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.wa-channel:hover {
    background: #dcfce7;
}

.channel-icon {
    font-size: 24px;
}

.channel-details h4 {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.channel-details p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.support-alert {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #b45309;
}

.no-data {
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
    font-style: italic;
    font-size: 14px;
}

/* 5. Default WooCommerce Pages Makeovers */
.woocommerce-MyAccount-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
}

/* WooCommerce Default tables */
.woocommerce-MyAccount-content table.shop_table {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
}

.woocommerce-MyAccount-content table.shop_table th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 2px solid #e2e8f0;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.woocommerce-MyAccount-content table.shop_table tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content .woocommerce-button, 
.woocommerce-MyAccount-content .button {
    background: linear-gradient(135deg, #0f4c8a 0%, #1e3a8a 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(15, 76, 138, 0.15);
    transition: all 0.3s !important;
    text-decoration: none !important;
}

.woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-MyAccount-content .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 76, 138, 0.3);
    opacity: 0.95;
}

/* Forms & Inputs */
.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 15px;
}

.woocommerce-MyAccount-content form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.woocommerce-MyAccount-content form input.input-text {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
    background-color: #ffffff;
}

.woocommerce-MyAccount-content form input.input-text:focus {
    border-color: #0f4c8a;
    box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.15);
}

.woocommerce-MyAccount-content fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.woocommerce-MyAccount-content fieldset legend {
    font-weight: 700;
    color: #1e293b;
    padding: 0 10px;
    font-size: 16px;
}

/* WC Notices styling */
.woocommerce-Message, .woocommerce-info, .woocommerce-error {
    background-color: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-left: 4px solid #3b82f6 !important;
    color: #1e40af !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    font-size: 14px !important;
    margin-bottom: 25px !important;
    list-style: none !important;
}

.woocommerce-Message .button, .woocommerce-info .button {
    background: #3b82f6 !important;
    margin-top: -6px;
    margin-bottom: -6px;
}

/* Order View Details styling */
.woocommerce-order-details, .woocommerce-customer-details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

ul.order_details {
    list-style: none;
    padding: 20px;
    margin: 0 0 30px 0;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #e2e8f0;
}

ul.order_details li {
    flex: 1 1 150px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    border-right: 1px solid #e2e8f0;
    padding-right: 20px;
}

ul.order_details li:last-child {
    border-right: none;
    padding-right: 0;
}

ul.order_details li strong {
    display: block;
    font-size: 16px;
    color: #1e293b;
    margin-top: 4px;
}

/* 6. Login / Register Forms (Modern Card look) */
.woocommerce-form-login, .woocommerce-form-register {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.woocommerce-account .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
    width: 100%;
}

.woocommerce-account .u-column1, .woocommerce-account .u-column2 {
    flex: 1 1 450px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    
    .woocommerce-MyAccount-navigation {
        max-width: 100%;
        flex: 1 1 auto;
        width: 100%;
    }
    
    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .clientarea-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .welcome-badge {
        margin-top: 5px;
    }
    
    .quick-order-buttons {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
        width: 100%;
    }
    
    .woocommerce-MyAccount-navigation li a {
        width: 100%;
    }
    
    .clientarea-row {
        flex-direction: column;
    }
}
