

body {
    font-family: Arial, sans-serif;
    background-color: #f1f1ef;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Offsets fixed navbar */
}

/* ===== LOGIN PAGE STYLES ===== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.login-box h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #333;
}

.login-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-btn {
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.gifter-btn {
    background-color: #ff9800;
    color: white;
}

.gifter-btn:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.buyer-btn {
    background-color: #2196f3;
    color: white;
}

.buyer-btn:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 30px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar h1 {
    margin: 0;
    font-size: 28px;
}

.logout-btn {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

/* ===== GIFTER CONTENT ===== */
.gifter-content {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.section-card {
    background: white;
    width: 300px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.section-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.section-card p {
    color: #666;
    margin: 0;
}

/* ===== BUYER PORTAL STYLES ===== */
h1 {
    text-align: center;
    margin-bottom: 30px;
}

#slots-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.slot-card {
    background: #ffffff;
    width: 320px;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.slot-card .slot-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 8px 8px 0 0;
}

.slot-card > *:not(.slot-image) {
    padding: 0 20px;
}

.slot-card h2 {
    margin-top: 15px;
    margin-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.slot-card p {
    margin: 6px 0;
    padding: 0 20px;
}

.slot-card button {
    margin: 15px 20px 20px 20px;
    width: calc(100% - 40px);
    height: 35px;
    padding: 14px;
    background-color: #4caf50;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.slot-card button:hover {
    background-color: #43a047;
}

.slot-card button:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
}

/* link style for product names */
.product-link { color: #222; text-decoration: none; }
.product-link:hover { color: #1976d2; text-decoration: underline; }

/* product detail responsive tweaks */
@media (max-width: 900px) {
    .product-wrap { flex-direction: column; padding: 20px; }
    .product-info { width: 100%; }
    .product-main-image { height: 350px; }
}
/* ===== GIFTER PORTAL STYLES ===== */
.gift-pair-card {
    background: white;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gift-item, .reward-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-item img, .reward-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.gift-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.exchange-arrow {
    flex: 0 0 50px;
    font-size: 40px;
    color: #ff9800;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-action-zone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.gift-action-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s;
    white-space: nowrap;
}

.gift-action-btn:hover {
    background-color: #f57c00;
}

@media (max-width: 768px) {
    .gift-pair-card {
        flex-direction: column;
        text-align: center;
    }
    .exchange-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    .gift-action-zone {
        margin-top: 20px;
        width: 100%;
    }
    .gift-action-btn {
        width: 100%;
    }
}

/* ===== NAVBAR & PROFILE DROPDOWN ===== */

.user-menu {
    position: relative;
    cursor: pointer;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.profile-icon:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.dropdown-menu.show {
    display: block;
}


/* ===== FORM & ADDRESS STYLES ===== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.form-group input, 
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Curve */
    font-size: 15px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.action-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    width: 100%;
}

.action-btn:hover {
    background-color: #0056b3;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.address-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.address-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}


/* Custom Alert Modal styles */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.custom-alert-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    font-family: Arial, sans-serif;
}
.custom-alert-box h3 {
    margin-top: 0;
    color: #333;
}
.custom-alert-box p {
    color: #555;
    margin-bottom: 20px;
}
.custom-alert-box button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
.custom-alert-box button:hover {
    background: #0056b3;
}
