/* ===================================
   DASHBOARD - LUXURY DESIGN (IMPROVED)
   =================================== */

/* Dashboard Navigation */
.navbar-dashboard {
    background: var(--white);
    border-bottom: 1px solid var(--gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Dashboard Section */
.dashboard-section {
    min-height: 100vh;
    /* Behoud deze hoge padding, dit voorkomt overlap */
    padding: 140px 0 100px; 
    background: var(--off-white);
}

/* --- Alerts --- */
.alert {
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.alert p {
    margin: 0;
    font-size: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success);
    color: #065f46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    color: #991b1b;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 40px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.header-content h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.header-content h1 .gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content p {
    font-size: 16px;
    color: var(--medium-gray);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* --- Statistics Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

/* Mooie kleuren voor de statistiek kaarten */
.stat-card-total {
    background: linear-gradient(135deg, #fff 0%, #fef3f2 100%);
}
.stat-card-total .stat-icon {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: #ea580c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.stat-card-available {
    background: linear-gradient(135deg, #fff 0%, #ede9fe 100%);
}
.stat-card-available .stat-icon {
    background: linear-gradient(135deg, #ede9fe 0%, #c7d2fe 100%);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.stat-card-purchased {
    background: linear-gradient(135deg, #fff 0%, #d1fae5 100%);
}
.stat-card-purchased .stat-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
    color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.stat-content h3 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 4px 0;
    line-height: 1;
}

.stat-content p {
    font-size: 15px;
    color: var(--medium-gray);
    margin: 0;
    font-weight: 500;
}

/* Highlight kaarten (Elegante donkere gradient) */
.stat-card-highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 36px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.stat-card-highlight .stat-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    color: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card-highlight .stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-card-highlight .stat-content h3 {
    color: var(--white);
    font-size: 42px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Gift Message Styling */
.gift-message {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    margin: 16px 0;
    align-items: flex-start;
}

.gift-message-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.gift-message-content {
    flex: 1;
}

.gift-message-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.gift-message-text {
    font-size: 15px;
    color: var(--secondary);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    font-weight: 500;
}

.stat-label {
    font-size: 13px;
    color: #4A5568; /* Donkergrijs in plaats van wit */
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-url-wrapper {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 14px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.profile-url-wrapper input {
    flex: 1;
    background: var(--white);
    border: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-url-wrapper input:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-copy {
    background: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

/* Voor de profile URL kaart die volle breedte heeft */
.profile-url-wrapper-card { 
    grid-column: 1 / -1;
}

/* Wishlist Section */
.wishlist-section {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header-inline h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.filter-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 32px;
}

/* --- Wishlist Items --- */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.wishlist-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
    position: relative;
}

.wishlist-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.item-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--light-gray);
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-item:hover .item-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

/* Item Status Badge Styling */
.item-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.wishlist-item[data-status="purchased"] .item-badge {
    background: rgba(5, 150, 105, 0.95);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.wishlist-item[data-status="available"] .item-badge {
    background: rgba(245, 158, 11, 0.95);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Fade out Purchased items */
.wishlist-item[data-status="purchased"] {
    opacity: 0.7;
    border-color: var(--success);
}

.item-content {
    padding: 24px;
}

.item-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-description {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.6;
}

.item-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-link {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: var(--white);
    text-align: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

.btn-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-gray);
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
}

.btn-icon.btn-danger:hover {
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 32px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.modal-close {
    width: 44px;
    height: 44px;
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gray);
    transform: rotate(90deg);
}

.modal-content form {
    padding: 32px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray);
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--secondary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--gray);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.02);
}

/* Input Hint */
.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--medium-gray);
    font-style: italic;
}

/* Order History Section */
.order-history-section {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 40px;
}

.order-history-section h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 32px 0;
}

.order-timeline {
    position: relative;
    padding-left: 40px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--success) 100%);
}

.order-item {
    position: relative;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--light-gray);
    border-radius: 16px;
    border: 1px solid var(--gray);
    transition: all 0.3s ease;
}

.order-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.order-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 32px;
    width: 16px;
    height: 16px;
    background: var(--success);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

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

.order-info h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 4px 0;
}

.order-date {
    font-size: 14px;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray);
}

.order-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-detail-value {
    font-size: 15px;
    color: var(--secondary);
    font-weight: 500;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.order-status::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    font-size: 11px;
}

/* Empty Order History State */
.empty-order-history {
    text-align: center;
    padding: 60px 40px;
}

.empty-order-history .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-order-history h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.empty-order-history p {
    font-size: 15px;
    color: var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card-highlight {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .dashboard-section {
        padding: 100px 0 60px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 32px 24px;
    }

    .header-content h1 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card-highlight {
        grid-column: span 1;
    }

    .section-header-inline {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    .modal-content form {
        padding: 24px;
    }

    .wishlist-section {
        padding: 32px 24px;
    }
}
/* ===================================
   RESPONSIVE FIX VOOR PROFIEL URL KAART
   =================================== */

@media (max-width: 768px) {
    /* Zorg dat de stats grid correct naar 1 kolom gaat, en dat de URL-kaart de volle breedte pakt */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card-highlight {
        grid-column: span 1;
    }
    
    /* FIX: Profiel URL Wrapper */
    .profile-url-wrapper {
        flex-direction: column; /* Stapel input en knop op elkaar */
        gap: 10px;
        padding: 12px;
    }

    .profile-url-wrapper input {
        width: 100%; /* Input neemt de volledige breedte van de wrapper in */
        padding: 10px 14px;
        font-size: 12px; /* Verklein de tekst om meer van de URL te tonen */
        
        /* Zorgt ervoor dat de tekst afbreekt indien nodig */
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .btn-copy {
        width: 100%; /* Copy knop neemt de volledige breedte in beslag */
        padding: 10px 14px;
        font-size: 14px;
    }
}