/* Advanced User Manager - Frontend Styles */

.aum-button-container {
    position: relative;
    display: inline-block;
}

.aum-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    font-family: inherit; /* Use theme font */
    line-height: 1.4;
}

.aum-login-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.aum-login-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

/* User Icon Styles */
.aum-user-icon {
    margin-left: 8px;
    font-size: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* RTL Support for Icon */
body.rtl .aum-user-icon {
    margin-left: 0;
    margin-right: 8px;
}

/* Dropdown Styles */
.aum-logged-in .aum-login-button {
    position: relative;
}

.aum-arrow {
    margin-right: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.aum-dropdown-toggle.active .aum-arrow {
    transform: rotate(180deg);
}

.aum-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-family: inherit; /* Use theme font */
}

.aum-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.aum-dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border: none;
    background: none;
    text-align: right;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-family: inherit; /* Use theme font */
}

.aum-dropdown-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
}

.aum-dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

.aum-logout-btn {
    color: #dc3545 !important;
    font-weight: 500;
}

.aum-logout-btn:hover {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

/* Modal Styles */
.aum-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aum-modal-content {
    background: #ffffff;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: aum-modal-appear 0.3s ease;
    font-family: inherit; /* Use theme font */
}

@keyframes aum-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.aum-modal-header {
    padding: 20px 20px 0;
    border-bottom: 1px solid #eee;
}

.aum-modal-header h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
    font-family: inherit; /* Use theme font */
}

.aum-modal-body {
    padding: 20px;
}

.aum-modal-body p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-family: inherit; /* Use theme font */
}

.aum-modal-footer {
    padding: 0 20px 20px;
    text-align: left;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.aum-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit; /* Use theme font */
}

.aum-btn-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.aum-btn-danger:hover {
    background-color: #c82333;
}

.aum-btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.aum-btn-secondary:hover {
    background-color: #5a6268;
}

/* Popup Trigger Styles */
.aum-popup-trigger {
    cursor: pointer;
}

/* RTL Support */
body.rtl .aum-dropdown-menu {
    right: auto;
    left: 0;
}

body.rtl .aum-dropdown-item {
    text-align: left;
}

body.rtl .aum-arrow {
    margin-right: 0;
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aum-dropdown-menu {
        min-width: 180px;
    }
    
    .aum-modal-content {
        margin: 20px;
    }
    
    .aum-modal-footer {
        flex-direction: column;
    }
    
    .aum-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .aum-btn:last-child {
        margin-bottom: 0;
    }
    
    .aum-login-button {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .aum-user-icon {
        font-size: 14px;
        margin-left: 6px;
    }
    
    body.rtl .aum-user-icon {
        margin-left: 0;
        margin-right: 6px;
    }
}