/* Account Action Item Styles */
.account.action-item {
    position: relative;
    display: inline-block;
}

.account-dropdown-li {
    position: relative;
}

.account-dropdown-li .dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
    padding: 0;
    display: block;
}

.account-dropdown-li .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 250px;
    z-index: 1000;
    margin-top: 10px;
}

.account-dropdown-li .dropdown-menu.show {
    display: block;
}

.account-dropdown-li .dropdown-menu li {
    list-style: none;
}

.account-dropdown-li .dropdown-menu .login-btn,
.account-dropdown-li .dropdown-menu .logout-btn,
.account-dropdown-li .dropdown-menu #accountDetailsButton {
    text-align: center;
    font-weight: bold;
    color: #cf0000;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.account-dropdown-li .dropdown-menu .login-btn:hover,
.account-dropdown-li .dropdown-menu .logout-btn:hover,
.account-dropdown-li .dropdown-menu #accountDetailsButton:hover {
    background-color: #f8d7da;
    color: #a80000;
}

.account-dropdown-li .dropdown-menu p {
    padding: 10px 15px;
    margin: 0;
    border-bottom: 1px solid #eee;
} 

/* Login Popup Styles */
/* Reset default styles */
input[type="text"],
input[type="password"],
input[type="email"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
}

.login-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.login-popup.active {
    display: flex;
}

.login-popup-content {
    position: relative;
    background-color: white;
    width: 400px;
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: popup 0.3s ease-out;
}

@keyframes popup {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Close Button */
.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    background: #f0f0f0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close:hover {
    color: #e41b23;
    background: #e0e0e0;
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container img {
    width: 80px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.logo-container h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s;
}

.input-with-icon input {
    width: 100%;
    height: 45px;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
}

.input-with-icon input:focus {
    border-color: #e41b23;
    box-shadow: 0 0 0 2px rgba(228, 27, 35, 0.1);
    outline: none;
}

.input-with-icon input:focus + i {
    color: #e41b23;
}

.input-with-icon input::placeholder {
    color: #999;
    opacity: 1;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 14px;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e41b23;
}

/* Forgot Password Link */
.forgot-password {
    color: #e41b23;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #c41018;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #e41b23;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #c41018;
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #e41b23;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #c41018;
    text-decoration: underline;
}

/* Back to Login Link */
.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: #e41b23;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.back-to-login a:hover {
    color: #c41018;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .login-popup-content {
        width: 90%;
        padding: 25px;
        margin: 10% auto;
    }

    .logo-container img {
        width: 60px;
    }

    .logo-container h2 {
        font-size: 20px;
    }

    .input-with-icon input {
        padding: 10px 10px 10px 35px;
    }

    .input-with-icon i {
        font-size: 14px;
    }

    .login-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .close-button{
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Override input styles for login popup */
.login-popup .form-group input[type="text"],
.login-popup .form-group input[type="password"],
.login-popup .form-group input[type="email"] {
    position: relative !important;
    width: 100% !important;
    opacity: 1 !important;
    padding: 12px 15px 12px 45px !important;
    height: 45px !important;
    margin-bottom: 0 !important;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
}

.login-popup .form-group input[type="text"]:focus,
.login-popup .form-group input[type="password"]:focus,
.login-popup .form-group input[type="email"]:focus {
    border-color: #e41b23;
    box-shadow: 0 0 0 2px rgba(228, 27, 35, 0.1);
    outline: none;
}

/* Enhanced checkbox styling */
.remember-me input[type="checkbox"] {
    accent-color: #e41b23;
}

/* For browsers that don't support accent-color */
.remember-me input[type="checkbox"]:checked {
    background-color: #e41b23;
    border-color: #e41b23;
}

.remember-me input[type="checkbox"]:focus {
    outline-color: #e41b23;
    border-color: #e41b23;
} 

 /* Login Popup Close Button Styles */
 .close-button-container {
    position: absolute;
    top: 15px;
    right: -16px;
    z-index: 1000;
}

.close-button {
    background-color: #FF0000;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative;
}

.close-button:hover {
    background-color: #AA0000;
}

.close-button i {
    font-size: 16px;
    color: white;
}

.close-button::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent transparent #ff000067;
}

/* Add these styles for popup handling */
body.popup-open {
    position: fixed;
    width: 100%;
}

/* Account Dropdown Styles */
.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    min-width: 200px;
}

.dropdown-content {
    padding: 10px 0;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown-content a i {
    margin-right: 10px;
    color: #e41b23;
}

/* Account Details Popup Styles */
.account-details-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow-y: auto;
}

.account-details-popup.dfa-show {
    display: block;
}

.popup-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: #e41b23;
}

.popup-body {
    display: flex;
    min-height: 400px;
}

/* Left Box Styles */
.dfa-leftbox {
    width: 8%;
    height: 95%;
    background: linear-gradient(to bottom, #000, #e41b23);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    position: fixed;
    top: 50%;
    left: 178px;
    transform: translateY(-50%);
    z-index: 2001;
    overflow-y: hidden;
}

.dfa-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    gap: 9%;
}

.dfa-nav a {
    color: #fff !important;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: color 0.2s;
}

.dfa-nav a.dfa-active,
.dfa-nav a:hover {
    color: #e41b23;
    background: none;
}

.dfa-nav a i {
    margin: 0;
    font-size: 1em;
    line-height: 1;
}

/* Right Box Styles */
.dfa-rightbox {
    flex: 1;
    padding: 20px;
}

/* Section Styles */
.dfa-profile,
.dfa-payment,
.dfa-subscription,
.dfa-privacy,
.dfa-settings {
    display: block;
    transition: opacity 0.3s ease;
}

.dfa-noshow {
    display: none !important;
    opacity: 0;
}

.dfa-rightbox > div:not(.dfa-noshow) {
    display: block;
    opacity: 1;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.detail-item label {
    width: 150px;
    font-weight: 600;
    color: #666;
}

.detail-item span {
    flex: 1;
    color: #333;
}

/* Button Styles */
.dfa-btn {
    background: none;
    border: none;
    color: #e41b23;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: color 0.3s;
}

.dfa-btn:hover {
    color: #c41820;
}

.dfa-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.dfa-save-btn,
.dfa-cancel-btn {
    padding: 5px 15px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.dfa-save-btn {
    background: #e41b23;
    color: #fff;
    border: none;
}

.dfa-save-btn:hover {
    background: #c41820;
}

.dfa-cancel-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.dfa-cancel-btn:hover {
    background: #e9ecef;
}

.dfa-undo-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.dfa-undo-btn:hover {
    background: #e9ecef;
}

.countdown {
    color: #e41b23;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 20px auto;
    }

    .popup-body {
        flex-direction: column;
    }

    .dfa-leftbox {
        flex-direction: row;
        width: 100%;
        min-width: unset;
        max-width: unset;
        height: 60px;
        border-radius: 10px 10px 0 0;
        box-shadow: none;
        padding: 0;
    }

    .dfa-nav {
        flex-direction: row;
        gap: 20px;
        width: 100%;
        height: 100%;
        justify-content: center;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-item label {
        width: 100%;
        margin-bottom: 5px;
    }

    .detail-item span {
        width: 100%;
        margin-bottom: 5px;
    }
}
