/* ============================================
   ARITHMET CUSTOMIZER - Main Styles
   ============================================ */

:root {
    --arithmet-primary: #2d3e50;
    --arithmet-primary-dark: #1a2a3a;
    --arithmet-secondary: #f8f9fa;
    --arithmet-accent: #4a6fa5;
    --arithmet-text: #1a1a1a;
    --arithmet-text-light: #6b7280;
    --arithmet-border: #e5e7eb;
    --arithmet-shadow: 0 4px 24px rgba(0,0,0,0.08);
    --arithmet-radius: 12px;
    --arithmet-transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

/* ========== CONTAINERS ========== */
.arithmet-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 16px;
}

.arithmet-card {
    background: #ffffff;
    border-radius: var(--arithmet-radius);
    box-shadow: var(--arithmet-shadow);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.arithmet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--arithmet-primary);
}

/* ========== HEADER ========== */
.arithmet-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.arithmet-card-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--arithmet-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-card-header h2 i {
    color: var(--arithmet-primary);
    margin-right: 10px;
    font-size: 26px;
}

.arithmet-card-header p {
    color: var(--arithmet-text-light);
    font-size: 15px;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== TABS ========== */
.arithmet-auth-tabs {
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--arithmet-border);
    margin-bottom: 28px;
}

.arithmet-tab-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--arithmet-transition);
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--arithmet-text-light);
}

.arithmet-tab-btn i {
    margin-right: 8px;
    font-size: 14px;
}

.arithmet-tab-btn:hover {
    background: var(--arithmet-secondary);
}

.arithmet-tab-btn.active {
    background: var(--arithmet-primary);
    color: #ffffff;
}

.arithmet-tab-btn.active i {
    color: #ffffff;
}

/* ========== FORMS ========== */
.arithmet-form {
    margin-top: 4px;
}

.arithmet-form-group {
    margin-bottom: 20px;
}

.arithmet-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--arithmet-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-form-group label i {
    color: var(--arithmet-text-light);
    margin-right: 8px;
    width: 18px;
    font-size: 14px;
}

.arithmet-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--arithmet-border);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--arithmet-transition);
    background: #fafafa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-form-group input:focus {
    border-color: var(--arithmet-primary);
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(45, 62, 80, 0.1);
}

.arithmet-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.arithmet-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--arithmet-text-light);
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--arithmet-primary);
}

.arithmet-forgot-link {
    font-size: 14px;
    color: var(--arithmet-accent);
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-forgot-link:hover {
    text-decoration: underline;
}

/* ========== BUTTONS ========== */
.arithmet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--arithmet-transition);
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-btn i {
    font-size: 16px;
}

.arithmet-btn-primary {
    width: 100%;
    background: var(--arithmet-primary);
    color: #ffffff;
}

.arithmet-btn-primary:hover {
    background: var(--arithmet-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 62, 80, 0.3);
}

.arithmet-btn-primary i {
    transition: transform 0.3s ease;
}

.arithmet-btn-primary:hover i {
    transform: translateX(4px);
}

.arithmet-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--arithmet-primary);
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--arithmet-transition);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-btn-small i {
    font-size: 12px;
}

.arithmet-btn-small:hover {
    background: var(--arithmet-primary-dark);
    color: #ffffff;
}

/* ========== FOOTER ========== */
.arithmet-card-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--arithmet-border);
    text-align: center;
}

.arithmet-card-footer p {
    font-size: 13px;
    color: var(--arithmet-text-light);
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-card-footer a {
    color: var(--arithmet-accent);
    text-decoration: none;
}

.arithmet-card-footer a:hover {
    text-decoration: underline;
}

/* ========== TABS CONTENT ========== */
.arithmet-tab-content {
    display: none;
}

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

/* ========== SEARCH ========== */
.arithmet-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.arithmet-search-container {
    display: flex;
    align-items: center;
    border: 2px solid var(--arithmet-border);
    border-radius: 50px;
    padding: 4px;
    background: #ffffff;
    transition: var(--arithmet-transition);
}

.arithmet-search-container:focus-within {
    border-color: var(--arithmet-primary);
    box-shadow: 0 0 0 3px rgba(45, 62, 80, 0.1);
}

.arithmet-search-input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    outline: none;
    background: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-search-input::placeholder {
    color: #9ca3af;
}

.arithmet-search-btn {
    background: var(--arithmet-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: #ffffff;
    cursor: pointer;
    transition: var(--arithmet-transition);
}

.arithmet-search-btn i {
    font-size: 16px;
}

.arithmet-search-btn:hover {
    background: var(--arithmet-primary-dark);
}

/* ========== SEARCH RESULTS ========== */
.arithmet-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: var(--arithmet-radius);
    box-shadow: var(--arithmet-shadow);
    border: 1px solid var(--arithmet-border);
    max-height: 400px;
    overflow-y: auto;
    z-index: 999;
}

.arithmet-search-results-list {
    padding: 8px;
}

.arithmet-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--arithmet-text);
    transition: var(--arithmet-transition);
}

.arithmet-search-result-item:hover {
    background: var(--arithmet-secondary);
}

.arithmet-search-result-item h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-search-result-item p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--arithmet-text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== ACCOUNT MENU ========== */
.arithmet-account-menu {
    background: #ffffff;
    border-radius: var(--arithmet-radius);
    box-shadow: var(--arithmet-shadow);
    padding: 24px;
    max-width: 320px;
}

.arithmet-account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--arithmet-border);
    margin-bottom: 16px;
}

.arithmet-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.arithmet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arithmet-user-info {
    flex: 1;
    min-width: 0;
}

.arithmet-user-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: var(--arithmet-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-user-email {
    display: block;
    font-size: 13px;
    color: var(--arithmet-text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    word-break: break-all;
}

.arithmet-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.arithmet-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--arithmet-text);
    transition: var(--arithmet-transition);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
}

.arithmet-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--arithmet-text-light);
}

.arithmet-menu-item:hover {
    background: var(--arithmet-secondary);
}

.arithmet-menu-item:hover i {
    color: var(--arithmet-primary);
}

.arithmet-menu-item.active {
    background: var(--arithmet-secondary);
    color: var(--arithmet-primary);
    font-weight: 500;
}

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

.arithmet-menu-item.logout {
    color: #dc3545;
    margin-top: 4px;
    border-top: 1px solid var(--arithmet-border);
    padding-top: 16px;
}

.arithmet-menu-item.logout i {
    color: #dc3545;
}

.arithmet-menu-item.logout:hover {
    background: #fef0f0;
}

.arithmet-badge {
    margin-left: auto;
    background: var(--arithmet-primary);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ========== DASHBOARD ========== */
.arithmet-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.arithmet-dashboard-header {
    margin-bottom: 32px;
}

.arithmet-dashboard-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--arithmet-text);
}

.arithmet-dashboard-header h2 i {
    color: var(--arithmet-primary);
    margin-right: 10px;
}

.arithmet-dashboard-subtitle {
    color: var(--arithmet-text-light);
    font-size: 16px;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.arithmet-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: var(--arithmet-radius);
    box-shadow: var(--arithmet-shadow);
}

.arithmet-stat-card i {
    font-size: 28px;
    color: var(--arithmet-primary);
    width: 40px;
    text-align: center;
}

.arithmet-stat-info {
    flex: 1;
}

.arithmet-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--arithmet-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-stat-label {
    font-size: 13px;
    color: var(--arithmet-text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-recent-orders {
    background: #ffffff;
    border-radius: var(--arithmet-radius);
    box-shadow: var(--arithmet-shadow);
    padding: 24px;
}

.arithmet-recent-orders h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--arithmet-text);
}

.arithmet-recent-orders h3 i {
    color: var(--arithmet-primary);
    margin-right: 8px;
}

.arithmet-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-table thead {
    border-bottom: 2px solid var(--arithmet-border);
}

.arithmet-table th {
    text-align: left;
    padding: 12px 12px 12px 0;
    font-weight: 600;
    font-size: 13px;
    color: var(--arithmet-text-light);
}

.arithmet-table td {
    padding: 14px 12px 14px 0;
    border-bottom: 1px solid var(--arithmet-border);
}

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

.arithmet-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.arithmet-status.completed {
    background: #d4edda;
    color: #155724;
}

.arithmet-status.processing {
    background: #fff3cd;
    color: #856404;
}

.arithmet-status.pending {
    background: #f8d7da;
    color: #721c24;
}

.arithmet-status.on-hold {
    background: #e2e3e5;
    color: #383d41;
}

/* ========== SUCCESS CARD ========== */
.arithmet-success-card {
    text-align: center;
    padding: 60px 40px;
}

.arithmet-success-card i {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 16px;
}

.arithmet-success-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-success-card p {
    margin: 0;
}

/* ========== LOGIN LINK ========== */
.arithmet-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--arithmet-primary);
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-login-link i {
    font-size: 14px;
}

.arithmet-login-link:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .arithmet-card {
        padding: 24px 20px;
    }
    
    .arithmet-card-header h2 {
        font-size: 22px;
    }
    
    .arithmet-auth-tabs {
        flex-direction: column;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .arithmet-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .arithmet-table {
        font-size: 13px;
    }
    
    .arithmet-table th,
    .arithmet-table td {
        padding: 10px 8px 10px 0;
    }
    
    .arithmet-stat-card {
        padding: 16px 20px;
    }
    
    .arithmet-search-container {
        flex-direction: column;
        border-radius: 12px;
        padding: 0;
    }
    
    .arithmet-search-input {
        padding: 14px 16px;
        width: 100%;
    }
    
    .arithmet-search-btn {
        border-radius: 0 0 12px 12px;
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .arithmet-container {
        margin: 20px auto;
    }
    
    .arithmet-card {
        padding: 20px 16px;
    }
    
    .arithmet-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========== WOOCOMMERCE INTEGRATION ========== */
.woocommerce-MyAccount-navigation {
    background: #ffffff;
    border-radius: var(--arithmet-radius);
    box-shadow: var(--arithmet-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.woocommerce-MyAccount-content {
    background: #ffffff;
    border-radius: var(--arithmet-radius);
    box-shadow: var(--arithmet-shadow);
    padding: 32px;
}

.arithmet-account-header-wrapper {
    margin-bottom: 24px;
}

.arithmet-account-header-wrapper h1 {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--arithmet-text);
}

.arithmet-account-header-wrapper h1 i {
    color: var(--arithmet-primary);
    margin-right: 10px;
}

.arithmet-dashboard-welcome {
    padding: 16px 0;
    color: var(--arithmet-text-light);
}

.arithmet-dashboard-welcome i {
    color: var(--arithmet-primary);
    margin-right: 8px;
}

/* ========== RESOURCES GRID ========== */
.arithmet-resources-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.arithmet-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.arithmet-resource-card {
    background: #ffffff;
    border-radius: var(--arithmet-radius);
    padding: 20px;
    box-shadow: var(--arithmet-shadow);
    transition: var(--arithmet-transition);
}

.arithmet-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.arithmet-resource-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arithmet-resource-card h3 a {
    color: var(--arithmet-text);
    text-decoration: none;
}

.arithmet-resource-card h3 a:hover {
    color: var(--arithmet-accent);
}

.arithmet-resource-card p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--arithmet-text-light);
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}