/**
 * Public Stylesheet
 * Status: NOT IMPLEMENTED - Skeleton only
 * 
 * TODO for next Claude session:
 * - Design chat interface
 * - Create responsive chat layout
 * - Add animation effects
 * - Style subscription widgets
 */

/* TODO: Public styles will be implemented here */

/* Chat interface styles */
.isen-chat-container {
    /* TODO: Chat styling */
}

/* Subscription widget styles */
.isen-subscription-widget {
    /* TODO: Subscription styling */
}

/* Registration password UI */
.isen-password-row {
    /*display: flex;
    align-items: center;
    gap: 8px;*/
    margin-left: 20px;
    float: right;
    font-variant: all-small-caps;
}

.isen-show-password-link {
    text-decoration: none;
    white-space: nowrap;
}

.isen-show-password-link:hover {
    text-decoration: underline;
}

.isen-password-strength {
    margin-top: 6px;
}

.isen-password-strength.very-weak { color: rgb(255,0,102); }
.isen-password-strength.weak { color: rgb(255,0,102); }
.isen-password-strength.medium { color: #ff9800; }
.isen-password-strength.good { color: rgb(139,195,95); }
.isen-password-strength.strong { color: rgb(139,195,95); }

.isen-password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
    float: right;
}

/* Custom Alert Styling */
.isen-custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    animation: fadeInAlert 0.3s ease-in forwards;
}

@keyframes fadeInAlert {
    from { opacity: 0; }
    to { opacity: 1; }
}

.isen-alert-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);*/
    text-align: center;
    border: 1px solid #454545;
    animation: slideInAlert 0.4s ease-out;
}

@keyframes slideInAlert {
    from { 
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.isen-alert-message {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
    color: #454545;
}

.isen-alert-close {
    background: #425ec9;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    min-width: 80px;
}

.isen-alert-close:hover {
    background: #454545;
}

.isen-alert-loading {
    font-size: 16px;
    color: #454545;
    margin-top: 16px;
    animation: pulseLoading 1.5s ease-in-out infinite;
}

@keyframes pulseLoading {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Alert Types */
.isen-alert-error .isen-alert-message {
    color: #d63638;
}

.isen-alert-success .isen-alert-message {
    color: #454545;
}

.isen-alert-warning .isen-alert-message {
    color: #dba617;
}



/* User Authentication Component */
.isen-user-auth-component {
    position: fixed;
    z-index: 99999999;
    top: 0;
    right: 0px;
    width: 220px;
}

/* Guest State: Auth Buttons */
.isen-auth-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    float: right;
    position: relative;
    right: 10px;
}

/* Logged-in State: User Dropdown */
.isen-user-dropdown {
    position: relative;
}

.isen-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    height: 40px;
}

@media (max-width: 360px) {
    .isen-user-name {
        display: none;
    }
}

.isen-dropdown-arrow {
    transition: transform 0.2s ease;
    font-size: 12px;
    position: absolute;
    right: 10px;
}

.isen-dropdown-toggle[aria-expanded="true"] .isen-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.isen-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    line-height: 2;
}

.isen-dropdown-menu.isen-dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.isen-dropdown-item {
    display: block;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.isen-dropdown-item:hover {
}

/* Theme Toggle */
.isen-theme-toggle {
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    gap: 10px;
}

.isen-theme-label {
    font-weight: 500;
}

/*
.isen-theme-btn {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.isen-theme-btn:hover {
    background-color: var(--background-light);
}

.isen-theme-btn.isen-theme-active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
*/

/* Logout styling */
.isen-logout {
    border-top: 1px solid var(--border-color);
    margin-top: 0px;
    padding-top: 0px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .isen-dropdown-menu {
        right: auto;
        left: 0;
        min-width: 180px;
    }
    
    .isen-auth-buttons {
        /*flex-direction: column;*/
        gap: 8px;
        margin-top: 13px;
    }
    .isen-auth-buttons a {
        color: #fff !important;
    }
}

/* ===== ISEN CUSTOM LOGIN PAGE ===== */
.isen-login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.isen-login-container {
    max-width: 400px;
    width: 100%;
}

.isen-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.isen-login-header h1 {
    margin: 0 0 10px 0;
}

.isen-login-header p {
    margin: 0;
    opacity: 0.8;
}

.isen-login-error {
    color: rgb(255,0,102);
    margin-bottom: 20px;
    text-align: center;
}

.isen-login-form .isen-form-group {
    margin-bottom: 20px;
}

.isen-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}


.isen-remember-me {
    display: flex;
    align-items: center;
}

.isen-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 20px 0 0 0;
}

.isen-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 6px;
    width: auto;
    transform: scale(1);
}

.isen-login-submit {
    width: 100%;
    padding: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.isen-login-footer {
    margin-top: 30px;
    text-align: center;
}

/* Logout success message */
.isen-login-success {
    text-align: center;
    padding: 100px 20px;
}

.isen-login-success p {
}

.isen-login-success p:last-child {
    margin-bottom: 0;
}

.isen-lost-password,
.isen-register-link {
    margin: 10px 0;
}

.isen-lost-password a,
.isen-register-link a {
    text-decoration: none;
}

.isen-login-back {
    margin-top: 30px;
    text-align: center;
}

.isen-login-back a {
    text-decoration: none;
    opacity: 0.8;
}

.isen-login-back a:hover {
    opacity: 1;
}

/* Login Page Responsive Design */
@media (max-width: 480px) {
    .isen-login-container {
        padding: 30px 20px;
    }
    
    .isen-login-header h1 {
    }
    
    .isen-login-header p {
    }
}

/* Notice Styles for Enhanced Registration Form */
.isen-notice {
    padding: 12px 16px;
    margin: 0 0 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.isen-notice-info {
    background-color: #e7f3ff;
    border-color: #0073aa;
    color: #005a87;
}

.isen-notice-warning {
    background-color: #fff8e5;
    border-color: #ffb900;
    color: #856404;
}

.isen-notice-error {
    background-color: #fef7f1;
    border-color: #dc3232;
    color: #a00;
}

.isen-notice-success {
    background-color: #f0f6e8;
    border-color: #46b450;
    color: #2e5a1c;
}

/* Enhanced Plan Selection Styling */
.isen-plan-selection .isen-plan-option {
    padding: 10px 0 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.isen-plan-option:hover {
}

.isen-plan-option input[type="radio"]:checked + .isen-plan-details {
}

.isen-plan-option input[type="radio"]:checked + .isen-plan-details strong {
}

/* Error Message Styling */
.isen-error {
    background-color: #fef7f1;
    border: 1px solid #dc3232;
    border-radius: 4px;
    color: #a00;
    padding: 12px 16px;
    margin: 0 0 20px 0;
}

/* Enhanced Form Validation */
.isen-form-group input:invalid,
.isen-form-group select:invalid {
}

.isen-form-group input:focus:invalid,
.isen-form-group select:focus:invalid {
}

/* ===== LANGUAGE SWITCHER STYLES ===== */
.isen-language-switcher {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* When hidden, completely remove from layout */
.isen-language-switcher.hidden {
    display: none !important;
}

.isen-language-select {
    padding: 12px 16px;
    cursor: pointer;
    width: 280px;
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.isen-language-select option:disabled {
    color: #666;
    font-style: italic;
}

.isen-language-select:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.isen-language-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
    background: #f8f9fa;
}

/* Dark mode support */
[data-theme="dark"] .isen-language-switcher {
    background: #2a2a2a !important;
}

[data-theme="dark"] .isen-language-select {
    background: #2a2a2a;
    border-color: #555;
    color: #fff;
}

[data-theme="dark"] .isen-language-select:hover {
    border-color: #425ec9;
    background: #333;
}

[data-theme="dark"] .isen-language-select:focus {
    border-color: #425ec9;
    box-shadow: 0 0 0 3px rgba(66, 94, 201, 0.2);
    background: #333;
}

/* Language switcher covers entire window with white background */
.isen-language-switcher {
    position: fixed !important;
    z-index: 1 !important;
    background: white !important;
}

