/* Login Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #b31217;
    box-shadow: 0 0 0 3px rgba(179, 18, 23, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #b31217;
    color: white;
}

.btn-primary:hover {
    background: #8f0f13;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 18, 23, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #b31217;
    border: 1px solid #b31217;
}

.btn-secondary:hover {
    background: #fff1f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 18, 23, 0.15);
}

.btn-block {
    width: 100%;
    display: block;
}

.wishlist-modal-text {
    text-align: center;
    color: #666;
    margin: 0 0 18px 0;
}

.wishlist-modal-actions {
    margin-top: 10px;
}

.wishlist-modal-actions .btn + .btn {
    margin-top: 12px;
}

#wishlist-login-modal .modal-content {
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

#wishlist-login-modal .modal-content h2 {
    font-size: 22px;
    line-height: 1.25;
    margin: 8px 0 14px 0;
}

#wishlist-login-modal .modal-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #b31217;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(179, 18, 23, 0.25);
}

#wishlist-login-modal .modal-close:hover {
    background: #8f0f13;
    color: #ffffff;
}

.modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.modal-footer .link {
    display: block;
    margin: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.modal-footer .link:hover {
    color: #b31217;
}

.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* User Menu Styles */
.user-menu {
    margin-top: 20px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f8f8f8;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.user-menu-item:hover {
    background: #fff1f2;
    border-left-color: #b31217;
    transform: translateX(5px);
}

.user-menu-item i {
    font-size: 20px;
    color: #b31217;
    width: 25px;
    text-align: center;
}

.user-menu-item span {
    font-size: 15px;
    font-weight: 500;
}

.user-menu-item.logout {
    background: #fee;
    border-left-color: #c33;
}

.user-menu-item.logout:hover {
    background: #fdd;
}

.user-menu-item.logout i {
    color: #c33;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    .user-menu-item {
        padding: 12px 15px;
    }
    
    .user-menu-item span {
        font-size: 14px;
    }
}

html[data-theme='dark'] .modal-content {
    background: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

html[data-theme='dark'] .modal-close {
    color: #cccccc;
}

html[data-theme='dark'] .modal-close:hover {
    color: #ffffff;
}

html[data-theme='dark'] .form-control {
    background: #121212;
    border-color: #444444;
    color: #e0e0e0;
}

html[data-theme='dark'] .form-control:focus {
    border-color: #b31217;
    box-shadow: 0 0 0 3px rgba(179, 18, 23, 0.2);
}

html[data-theme='dark'] .modal-footer .link {
    color: #cccccc;
}

html[data-theme='dark'] .modal-footer .link:hover {
    color: #ff8fa3;
}

html[data-theme='dark'] .wishlist-modal-text {
    color: #cccccc;
}

html[data-theme='dark'] .btn-secondary {
    background: transparent;
    color: #ff8fa3;
    border-color: #ff8fa3;
}

html[data-theme='dark'] .btn-secondary:hover {
    background: rgba(179, 18, 23, 0.14);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

html[data-theme='dark'] #wishlist-login-modal .modal-close {
    background: #b31217;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(179, 18, 23, 0.25);
}

html[data-theme='dark'] #wishlist-login-modal .modal-close:hover {
    background: #8f0f13;
}

html[data-theme='dark'] .alert-error {
    background: #3b1919;
    color: #ffcccc;
    border-color: #b34747;
}

html[data-theme='dark'] .alert-success {
    background: #234223;
    color: #ccffcc;
    border-color: #4caf50;
}

html[data-theme='dark'] .user-menu-item {
    background: #252525;
    color: #e0e0e0;
}

html[data-theme='dark'] .user-menu-item:hover {
    background: #333333;
}

html[data-theme='dark'] .user-menu-item.logout {
    background: #3b1919;
}

html[data-theme='dark'] .user-menu-item.logout:hover {
    background: #4d1f1f;
}
