/* Enhanced version of your original CSS */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/static/Montserrat-Thin.ttf') format('truetype');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/static/Montserrat-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/static/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/static/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/static/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/static/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/static/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/static/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/static/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

.tabcontent a {
    text-decoration: none;
    color: #000;
}

#Security .sec {
    max-height: 60vh;
    overflow: auto;
}

.sec {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.75rem;
}
.sec__panel:has(.jetstream-modal:not([style*="display: none"])) .btn.btn--primary, 
.sec__panel:has(.jetstream-modal:not([style*="display: none"])) .two-factor-status { 
    display: none !important; 
}
.sec__panel {
    background: linear-gradient(to bottom, #fff, #fafbfc);
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}
.success-message {
    background: #dcfce7;
    color: #15803d;
    padding: 8px 12px;
    border-radius: 60px;
    font-size: 14px;
    margin-bottom: 16px;
}
.sec__panel:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sec__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: center;
}

.sec__head {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sec__title {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.sec__desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.sec__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Styles */
.pwd-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pwd-form__row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.pwd-form__row.confirm{
    opacity: 0;
    transition: all 0.3s ease;
}
.pwd-form__row.show{
    opacity: 1 !important;
}
.pwd-form__label {
    font-size: 0.8rem;
    color: #444;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.pwd-form__input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #e4e4e4;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
    min-height: 36px;
    box-sizing: border-box;
}

.pwd-form__input:hover {
    border-color: #d4d4d4;
}

.pwd-form__input:focus {
    border-color: #999;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.pwd-form__input::placeholder {
    color: #999;
}

/* Password Strength */
.password-strength {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin: 0.5rem 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}
.password-strength.show{
    opacity: 1;
}
.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
    background: #f0f0f0;
}

.password-strength-bar.strength-weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.strength-medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strength-strong {
    width: 100%;
    background: #10b981;
}

/* Password Requirements */
.password-requirements {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0;
    margin-top: 0.5rem;
}

.password-requirements.hidden {
    display: none;
}

.password-requirements.show {
    opacity: 1;
    max-height: 200px;
    padding: 1rem;
}

.password-requirements p {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
    line-height: 1.2;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.password-requirements li {
    font-size: 0.7rem;
    color: #666;
    padding-left: 1.6rem;
    position: relative;
    line-height: 1.4;
    display: flex;
    align-items: center;
    text-align: left;
}


.password-requirements li.valid {
    color: #10b981;
}

.password-requirements li.valid::before {
    content: '●';
    color: #10b981;
}

/* Button Styles - Using your original design */
.form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    min-height: 36px;
    text-decoration: none;
    line-height: 1.2;
}

.btn--primary {
    background: linear-gradient(to bottom, #fff, #fafafa);
    color: #2c2c2c;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn--primary:hover:not(:disabled) {
    border-color: #d4d4d4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn--primary:active {
    background: #f5f5f5;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.sec__action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    margin: 1rem auto;
    border: 1px solid #e5e5e5;
}

.btn--secondary {
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    color: #444;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn--secondary:hover {
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.btn--secondary:active {
    background: #f0f0f0;
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn--danger {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn--danger:hover {
    background: #fef2f2;
    border-color: #feb2b2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 0.875rem;
}

.form-actions--center {
    justify-content: center;
}

/* Two Factor Status */
.two-factor-status {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.status-dot.disabled {
    background: #94a3b8;
}

.status-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}
.sec__text{
    font-size: 12px;
    color: #666;
}
.text-sm.text-red-600.sec__error{
    font-size: 12px;
    color: red;
}
/* Sessions */
.sessions__item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #fafbfc;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.sessions__item:hover {
    background: #fff;
    border-color: #e4e4e4;
}

.sessions__icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #888;
    flex-shrink: 0;
}

.sessions__meta {
    flex: 1;
    margin-right: 20px;
}

.sessions__name {
    display: block;
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

.sessions__status {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.2;
}

.sessions__status--current {
    color: #059669;
    font-weight: 500;
}

/* Danger Zone */
.danger-panel {
    border-color: #fee2e2;
    background: linear-gradient(to bottom, #fff, #fef2f2);
}

.danger {
    background: #fff;
    border: 1px solid #fee2e2;
    border-radius: 6px;
    padding: 0.75rem;
}

.danger__text {
    color: #b91c1c;
    font-size: 0.8rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

/* Modal */
.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    display: flex;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: 0.3s ease;
    font-family: inherit;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #ddd;
    max-width: 420px;
    width: 90%;
    position: relative;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.modal-text {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 1.25rem 0;
}

.sec__form-row {
    margin-bottom: 1.25rem;
}

.sec__input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #e4e4e4;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.3;
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
    min-height: 36px;
    box-sizing: border-box;
}

.sec__input:hover {
    border-color: #d4d4d4;
}

.sec__input:focus {
    border-color: #999;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.sec__input::placeholder {
    color: #999;
}

.sec__actions {
    display: flex;
    justify-content: center;
    gap: 0.875rem;
    border-top: 1px solid #f0f0f0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Loading State */
.btn--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn--loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e5e5;
    border-top-color: #2c2c2c;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    top: 50%;
    left: 50%;
    margin: -0.5rem 0 0 -0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sec__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .sec__actions {
        flex-direction: column;
    }
    
    .password-requirements ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sec {
        margin: 0.5rem auto;
        padding: 0.5rem;
    }
    
    .sec__panel {
        padding: 0.75rem;
    }
}

/* Scrollbar styling */
.tabcontent::-webkit-scrollbar {
    width: 6px;
}

.tabcontent::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tabcontent::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tabcontent::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
