/* Zarvan Account Page Styles */

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --border-color: #e5e7eb;
    --focus-ring: 2px solid #000000;
}

/* Main Container */
.account-page {
    background: #f9fafb;
    min-height: 100vh;
    padding: 48px 24px;
}

.account-container {
    max-width: 1440px;
    margin: 0 auto;
}

.account-header {
    margin-bottom: 32px;
}

.account-title {
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: lowercase;
    letter-spacing: -0.05em;
    color: #000000;
    margin-bottom: 8px;
    font-family: 'Arimo', sans-serif;
}

.account-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Layout Grid */
.account-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}

@media (max-width: 1024px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: sticky;
        top: 96px;
        z-index: 10;
    }
}

/* Sidebar Navigation */
.account-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.account-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid #e5e7eb;
}

.account-nav li {
    border-bottom: 1px solid #e5e7eb;
}

.account-nav li:last-child {
    border-bottom: none;
}

.account-nav a {
    display: block;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    color: #000000;
    text-decoration: none;
}

.account-nav a:hover {
    background-color: #f3f4f6;
    padding-left: 28px;
}

.account-nav a.active {
    background-color: #000000;
    color: white;
}

.account-nav i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.account-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.account-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.account-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}

/* Stats Grid */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    border-radius: 8px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card.primary {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.stat-card.success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
}

.stat-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.25rem;
    opacity: 0.2;
}

/* Tables */
.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.account-table thead {
    border-bottom: 2px solid #000000;
}

.account-table th {
    text-align: left;
    padding: 12px 0;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000000;
}

.account-table td {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.account-table tbody tr:hover {
    background-color: #f9fafb;
    transition: background-color 0.2s ease;
}

.account-table a {
    color: #000000;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.account-table a:hover {
    color: #6b7280;
    text-decoration: underline;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e5e7eb;
    color: #374151;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Addresses Section */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.address-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
}

.address-card:hover {
    border-color: #000000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.address-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
}

.address-edit {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.address-edit:hover {
    color: #6b7280;
}

.address-content {
    color: #4b5563;
    line-height: 1.8;
}

.address-content em {
    color: #9ca3af;
}

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

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

.form-help a {
    color: #000000;
    font-weight: 700;
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background-color: #000000;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #1f2937;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.empty-state a {
    color: #000000;
    font-weight: 700;
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .account-page {
        padding: 24px 16px;
    }

    .account-content {
        padding: 24px;
    }

    .account-title {
        font-size: 1.875rem;
    }

    .account-table {
        font-size: 0.75rem;
    }

    .account-table th,
    .account-table td {
        padding: 8px 0;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .account-table th:nth-child(3),
    .account-table td:nth-child(3) {
        display: none;
    }
}
