/* QlinkR Account Manager Styles */
.qlinkr-account-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Login notice for non-logged users */
.qlinkr-account-notice {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.qlinkr-account-notice p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #6c757d;
}

.qlinkr-login-link {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.qlinkr-login-link:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    color: white;
}

/* Header */
.account-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
}

.account-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-welcome h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.user-welcome p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Tabs */
.account-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.account-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Section Headers */
.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}

/* Forms */
.account-form {
    max-width: 600px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Addresses */
.addresses-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.address-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Subscriptions */
.subscription-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.subscription-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.subscription-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

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

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

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

.subscription-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.subscription-info p {
    margin: 5px 0;
    color: #6c757d;
}

.cancel-notice {
    color: #e53e3e !important;
    font-style: italic;
}

/* Payment Methods */
.payment-methods-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.payment-methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-method-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-brand {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.default-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Upcoming Invoice */
.upcoming-invoice-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.upcoming-invoice-card {
    background: #e7f3ff;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
}

.upcoming-invoice-card p {
    margin: 5px 0;
    color: #0c5460;
}

/* Orders */
.orders-list {
    display: grid;
    gap: 20px;
}

.order-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

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

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

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

.order-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.order-details p {
    margin: 0;
    color: #6c757d;
}

/* Invoices */
.invoices-section {
    margin-bottom: 30px;
}

.invoices-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
}

.invoices-list {
    display: grid;
    gap: 15px;
}

.invoice-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.invoice-details {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.invoice-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.invoice-actions {
    display: flex;
    gap: 10px;
}

/* Empty States */
.no-subscriptions,
.no-orders,
.no-invoices {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-subscriptions p,
.no-orders p,
.no-invoices p {
    margin: 0;
    font-size: 1.1rem;
}

/* Messages */
#message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    min-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qlinkr-account-dashboard {
        padding: 15px;
    }
    
    .account-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .account-header h1 {
        font-size: 2rem;
    }
    
    .account-nav {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .addresses-container {
        grid-template-columns: 1fr;
    }
    
    .subscription-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .payment-methods-list {
        flex-direction: column;
    }
    
    .order-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .invoice-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .invoice-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .invoice-actions {
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .account-header h1 {
        font-size: 1.5rem;
    }
    
    .user-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} 