/* Account Dashboard */
.account-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.account-main-card {
    /* Removed global card style to split into sections */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.account-section:hover {
    border-color: rgba(255, 215, 0, 0.2); /* Subtle gold hint on hover */
}

.account-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.account-header h1 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.btn-logout {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.2), rgba(159, 122, 234, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
}

.account-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Reduced gap since sections have padding now */
}

.account-section h2 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* Info Card Style for Empty States */
.info-card {
    background: rgba(107, 70, 193, 0.1); /* Slight purple tint */
    border: 1px dashed rgba(255, 215, 0, 0.3); /* Gold dashed border */
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.info-card:hover {
    background: rgba(107, 70, 193, 0.15);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.info-card p {
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-text-muted);
}

.favorites-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.favorite-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.favorite-card h3 {
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.favorite-card p {
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.favorite-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorite-footer small {
    color: var(--color-text-muted);
}

.btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-remove:hover {
    transform: scale(1.2);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.history-details {
    line-height: 1.8;
}

.history-details strong {
    color: var(--color-accent);
}

.history-date {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    white-space: pre;
    margin-left: 1rem;
}

/* Forms in Account */
.add-beneficiary-form, .add-event-form, .add-wishlist-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.add-beneficiary-form input, .add-event-form input, .add-event-form select, .add-wishlist-form input {
    flex: 1;
    min-width: 150px;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--color-text);
    font-family: inherit;
}

.add-beneficiary-form input:focus, .add-event-form input:focus, .add-wishlist-form input:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.add-event-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.8rem 1.5rem;
    background: var(--color-accent);
    color: #1a0b2e;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Lists */
.beneficiaries-list, .events-list, .wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.beneficiary-item, .event-item, .wishlist-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.beneficiary-item:hover, .event-item:hover, .wishlist-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.event-item.urgent {
    border-color: #ff4757;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), transparent);
}

.ben-info, .event-details, .wishlist-info {
    flex: 1;
}

.ben-info strong, .event-details strong, .wishlist-info strong {
    display: block;
    color: var(--color-text);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--color-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.date {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.ben-interests, .countdown {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: block;
}

.ben-actions, .wishlist-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0.4rem;
    border-radius: 4px;
}

.btn-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.event-date {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-right: 1rem;
    min-width: 60px;
}

.event-date .day {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-accent);
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}