/* ==========================================================================
   Nexa Auth Styles - Shared styles for all authentication pages
   (Login, ChangePassword, ForgotPassword, ResetPassword, status pages)
   ========================================================================== */

.auth-content {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

/* Override template's narrow .login .login-content max-width (22.5rem = 360px) */
.login .login-content.auth-content {
    max-width: 520px;
}

.auth-card {
    border-radius: 1.25rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 2.5rem 4rem rgba(var(--bs-dark-rgb), 0.08);
}

.auth-hero {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-indigo));
    color: #fff;
    padding: 3.25rem 2.75rem;
    position: relative;
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: .85;
    pointer-events: none;
}

.auth-hero > * {
    position: relative;
    z-index: 1;
}

.auth-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
}

.auth-hero h1 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.auth-hero p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.auth-card .card-body {
    padding: 2.75rem 3rem;
}

.auth-form .form-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(var(--bs-dark-rgb), 0.6);
    margin-bottom: 0.75rem;
}

.auth-form .form-control {
    border-radius: 0.85rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(var(--bs-dark-rgb), 0.1);
    box-shadow: 0 0.35rem 1.2rem rgba(var(--bs-dark-rgb), 0.05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-form .form-control:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.55);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.18);
}

.auth-form .form-text-link {
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-btn {
    border-radius: 999px;
    padding: 0.95rem 1rem;
    box-shadow: 0 1.5rem 2.75rem rgba(var(--bs-primary-rgb), 0.35);
}

.auth-support {
    color: rgba(var(--bs-dark-rgb), 0.6);
    font-size: 0.85rem;
}

.auth-lang-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-lang-bar .btn {
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.auth-lang-bar .btn img {
    margin-right: 0.35rem;
    vertical-align: middle;
}

/* Status pages (success, error, info) */
.auth-status-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.auth-status-icon.success { color: #198754; }
.auth-status-icon.danger { color: #dc3545; }
.auth-status-icon.warning { color: #ffc107; }
.auth-status-icon.info { color: var(--bs-primary); }

@media (max-width: 991.98px) {
    .auth-card .card-body {
        padding: 2.5rem 2.25rem;
    }
}

@media (max-width: 575.98px) {
    .auth-hero {
        padding: 2.75rem 1.75rem;
    }

    .auth-card .card-body {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   Nexa ABM Styles - Shared styles for all CRUD/admin pages
   ========================================================================== */

.nexa-container {
    max-width: 1400px;
    margin: 0 auto;
}

.nexa-register-container {
    max-width: 900px;
    margin: 0 auto;
}

.header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-card h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.header-card .subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

.search-filter-bar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.nexa-item-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
    height: 100%;
}

.nexa-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nexa-item-card .card-header-section {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.nexa-item-card .item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.nexa-item-card .item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.nexa-item-card .item-info {
    flex: 1;
}

.nexa-item-card .item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
}

.nexa-item-card .item-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

.nexa-item-card .info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.nexa-item-card .info-row i {
    color: #667eea;
    width: 20px;
    margin-right: 0.5rem;
}

.nexa-item-card .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f8f9fa;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Form sections for Register pages */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.form-section h5 i {
    color: #667eea;
    margin-right: 0.5rem;
}

.form-section .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-section .form-label .required {
    color: #dc3545;
    margin-left: 0.25rem;
}

.form-section .form-control,
.form-section .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.625rem 0.875rem;
    transition: all 0.2s;
}

.form-section .form-control:focus,
.form-section .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-section .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-section .info-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.switch-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
}

.action-buttons .btn-cancel { min-width: 120px; }
.action-buttons .btn-submit { min-width: 150px; }

/* ==========================================================================
   Nexa TOP Views - Styles for TopView, TopEdit, TopEditAsignacion
   ========================================================================== */

/* Status row colors (preserved from original) */
.WWColumnSuccess { background-color: #dff0d8 !important; }
.WWColumnDanger { background-color: #f2dede !important; }
.WWColumnOpenSA { background-color: #c7e3fa !important; }
.WWColumnWarning { background-color: #faf2cc !important; }

/* TOP grid filter panel */
.top-filter-panel {
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* TOP action bar */
.top-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.top-action-bar .btn {
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* TOP tabs styling */
.top-tabs .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    padding: 0 1.5rem;
}

.top-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.top-tabs .nav-link:hover {
    color: #667eea;
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

.top-tabs .nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: transparent;
}

/* TOP detail info cards */
.top-info-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.top-info-section .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.top-info-section .section-title i {
    color: #667eea;
    margin-right: 0.5rem;
}

.top-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.top-info-item .top-info-label,
.top-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.top-info-item .top-info-value,
.top-info-value {
    font-size: 0.95rem;
    color: #212529;
}

.top-info-item {
    display: flex;
    flex-direction: column;
}

/* TOP sidebar cards */
.top-sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.top-sidebar-card .sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-sidebar-card .sidebar-title a {
    font-size: 0.8rem;
    color: #667eea;
    text-decoration: none;
}

/* TOP chat */
.top-chat-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

/* TOP assignment user list */
.top-user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-user-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.top-user-list li:last-child {
    border-bottom: none;
}

/* TOP file gallery */
.top-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.top-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.top-gallery-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.top-gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

/* Modal Nexa style */
.modal-nexa .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

.modal-nexa .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.modal-nexa .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-nexa .modal-footer {
    border-top: 1px solid #e9ecef;
}

.modal-nexa .modal-footer .btn {
    border-radius: 999px;
    min-width: 120px;
}

/* ==========================================================================
   Nexa Notifications - Styles for Notification/List
   ========================================================================== */

/* Empty state */
.notif-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.notif-empty i {
    font-size: 3.5rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

.notif-empty h5 {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Notification list */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #f8f9fa;
}

.notif-item.notif-unread {
    background: #f0f2ff;
    border-left: 3px solid #667eea;
}

.notif-item.notif-unread:hover {
    background: #e8ebff;
}

/* Icon circle */
.notif-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.notif-icon i {
    font-size: 1rem;
}

/* Content */
.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-weight: 600;
    font-size: 0.925rem;
    color: #212529;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.notif-detail {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.notif-user {
    font-size: 0.8rem;
    color: #868e96;
}

/* Meta (date, time, badge) */
.notif-meta {
    text-align: right;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 100px;
}

.notif-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.notif-time {
    font-size: 0.75rem;
    color: #adb5bd;
    font-weight: 500;
}

.notif-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notif-item {
        flex-wrap: wrap;
    }

    .notif-meta {
        flex-direction: row;
        gap: 0.75rem;
        width: 100%;
        padding-left: 58px;
        text-align: left;
        align-items: center;
        margin-top: 0.25rem;
    }
}
