﻿/* Add at the end of your existing styles.css file */

/* Rotating text animation */
.rotating-text {
    display: inline-block;
    transition: opacity 0.3s ease-in-out;
    font-weight: 600;
    color: #0d6efd;
}

/* Optional: Add a subtle pulse animation */
@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.rotating-text.pulse {
    animation: textPulse 0.3s ease-in-out;
}

/* User chat header design */
#my-chat .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    margin-bottom: 12px;
}

#my-chat .chat-header > div:first-child {
    min-width: 0;
}

#my-chat .chat-header .chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
}

#my-chat .chat-header .chat-avatar i {
    font-size: 1.4rem;
}

#my-chat .chat-header #adminName {
    font-weight: 600;
    color: #111827;
}

#my-chat .chat-header #adminStatus {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
}

#my-chat .chat-header #refreshChatBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border-color: #cbd5e1;
    color: #334155;
    background: #fff;
}

#my-chat .chat-header #refreshChatBtn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

:root {
    --primary-color: #0c61e7;
    --primary-light: #eef2fc;
    --gray-light: #f8f9fa;
    --gray-medium: #6b7280;
    --gray-dark: #1f2937;
}

[data-bs-theme="dark"] {
    --primary-light: #1a2332;
    --gray-light: #1a1a1a;
    --gray-medium: #9ca3af;
    --gray-dark: #f9fafb;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--gray-light);
    color: var(--bs-body-color);
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    background-color: var(--bs-body-bg) !important;
}

.search-bar {
    position: relative;
}

.search-bar input {
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding-left: 2.5rem;
}

.search-bar .bi-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-medium);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.card {
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    background-color: var(--bs-body-bg);
}

.stats-card {
    height: 148px;
    position: relative;
}

.stats-card .progress {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
}

.badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 9999px;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef9c3;
    color: #854d0e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 40px;
    bottom: -24px;
    width: 1px;
    background-color: var(--bs-border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon-success {
    background-color: #dcfce7;
}

.timeline-icon-warning {
    background-color: #fef9c3;
}

.timeline-icon-info {
    background-color: #f3e8ff;
}

.timeline-icon-danger {
    background-color: #fee2e2;
}

.nav-tabs {
    border-bottom: 1px solid var(--bs-border-color);
}

.nav-tabs .nav-link {
    color: var(--gray-medium);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 24px;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.profile-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

.alert-item {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
}

.alert-danger-bg {
    background-color: #fef2f2;
}

html[data-bs-theme="dark"] .alert-danger-bg {
    background-color: #691e1e;
}

.alert-warning-bg {
    background-color: #fefce8;
}

html[data-bs-theme="dark"] .alert-warning-bg {
    background-color: #7e7519;
}

.alert-info-bg {
    background-color: #fff7ed;
}

html[data-bs-theme="dark"] .alert-info-bg {
    background-color: #a65f07;
}

.alert-light-bg {
    background-color: #eff6ff;
}

html[data-bs-theme="dark"] .alert-light-bg {
    background-color: #28384e;
}

html[data-bs-theme="dark"] .bg-light {
    --bs-bg-opacity: 1;
    background-color: rgb(39 58 76) !important;
}

.deadline-item {
    padding: 12px 0 12px 16px;
    margin-bottom: 4px;
    border-radius: 4px;
}

.deadline-urgent {
    border-left: 4px solid #ef4444;
}

.deadline-warning {
    border-left: 4px solid #eab308;
}

.deadline-success {
    border-left: 4px solid #22c55e;
}

.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: none;
    background: none;
    color: var(--bs-body-color);
}

.theme-toggle:hover {
    background-color: var(--bs-secondary-bg);
}

.margin-wrap3 {
    padding: 0px 12px 0px 0px;
    display: flex;
    flex-direction: row;
    gap: 0px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
}

.input-338 {
    background: #0066cc;
    border-radius: 4px;
    border-style: solid;
    border-color: #0066cc;
    border-width: 1px;
    padding: 1px;
    display: flex;
    flex-direction: row;
    gap: 0px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.input-386 {
    background: #ffffff;
    border-radius: 4px;
    border-style: solid;
    border-color: #d1d5db;
    border-width: 1px;
    padding: 1px;
    display: flex;
    flex-direction: row;
    gap: 0px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

/* Activity section */
.activity-search-container {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px 10px;
    background-color: #fff;
    overflow: hidden;
}

.search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px;
    background-color: transparent;
}

.filter-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.filter-button:hover {
    background-color: #0056b3;
}

.row-p {
    padding-left: 6%;
    padding-right: 6%;
}

.img-logo {
    width: 160.33px;
    height: 54.3px;
    object-fit: cover;
    aspect-ratio: 146.33 / 48.3;
}

/* Button view */
.button-group-container {
    max-width: 280px;
    margin: 0 auto;
}

.btn-custom {
    height: 44px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.btn-primary-custom {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
}

.btn-primary-custom:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-custom {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline-custom:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Activity table css */
.activity-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.timeline-border {
    border-left: 4px solid;
}

.timeline-border.work-experience {
    border-color: #3b82f6;
}

.timeline-border.internships {
    border-color: #22c55e;
}

.timeline-border.system-generated {
    border-color: #a855f7;
}

.timeline-border.alert-history {
    border-color: #eab308;
}

.section-icon {
    width: 16px;
    height: 16px;
}

.section-title {
    font-weight: 500;
    font-size: 16px;
}

.work-experience .section-title {
    color: #3b82f6;
}

.internships .section-title {
    color: #22c55e;
}

.system-generated .section-title {
    color: #a855f7;
}

.alert-history .section-title {
    color: #eab308;
}

.badge-manual {
    background-color: #dbeafe;
    color: #2563eb;
}

.badge-internship {
    background-color: #dcfce7;
    color: #16a34a;
}

.badge-system {
    background-color: #f3e8ff;
    color: #9333ea;
}

.badge-alert {
    background-color: #fef9c3;
    color: #ca8a04;
}

.activity-item {
    background-color: #f9fafb;
    border-radius: 8px;
}

.activity-title {
    color: #1f2937;
    font-weight: 500;
    font-size: 16px;
}

.activity-company {
    color: #4b5563;
    font-size: 14px;
}

.activity-description {
    color: #6b7280;
    font-size: 14px;
}

.activity-date {
    color: #6b7280;
    font-size: 14px;
}

.search-input {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding-left: 40px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.filter-select {
    background-color: #efefef;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

/* Login css */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
}

.sidebar-image {
    background-image: url('../image/login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100%;
}

.sidebar-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-content {
    position: relative;
    z-index: 2;
    color: white;
}

.form-container {
    background: var(--bs-body-bg);
    display: flex;
    align-items: center;
    padding: 2rem;
}

.brand-logo {
    height: 65px;
    width: auto;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #3367d6;
    border-color: #3367d6;
}

.password-toggle {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #6c757d;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--bs-secondary-bg);
}

.required-field {
    color: #ef4444;
}

.form-control {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e1e5e9;
}

.form-control::placeholder {
    color: #9ca3af;
}

.navbar {
    background-color: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);    
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

/* Remove Bootstrap validation background icons in login inputs. */
.form-control.is-invalid, .was-validated .form-control:invalid
{
    background-image: none !important;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    color: #3367d6;
    text-decoration: none;
}

/* SignUp */
.sign-container {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

.image-section {
    background-color: #f9fafb;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 2rem;
}

.image-section img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.sign-section {
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bs-body-bg);
}

.sing-container {
    max-width: 672px;
    width: 100%;
}

.form-title {
    color: #111827;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    margin-bottom: 8px;
}

.required-field-text {
    color: #ef4444;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 32px;
}

.form-label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 8px;
}

.form-label .required {
    color: #ef4444;
}

.form-control, .form-select {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 13px 17px;
    font-size: 14px;
    line-height: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Keep a visible dropdown indicator on all single-select controls. */
.form-select:not([multiple]):not([size]),
.form-select:not([multiple])[size="1"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 16px 12px;
    padding-right: 2.4rem;
}

[data-bs-theme="dark"] .form-select:not([multiple]):not([size]),
[data-bs-theme="dark"] .form-select:not([multiple])[size="1"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.password-strength-bar {
    background: #e5e7eb;
    border-radius: 2px;
    height: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
}

.password-requirements {
    background: #f9fafb;
    border-radius: 16px;
    padding: 16px;
    margin-top: 24px;
}

.password-requirements h3 {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 12px;
}

.requirement-item {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 4px;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.requirement-icon svg {
    width: 12px;
    height: 12px;
}

.contact-method-label {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-method-label:hover {
    border-color: #3b82f6;
}

.contact-method-label input[type="radio"] {
    margin-right: 8px;
}

.info-icon {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 12px;
    height: 12px;
}

.form-check-label {
    color: #4b5563;
    font-size: 14px;
    line-height: 20px;
}

.form-check-label a {
    color: #3b82f6;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.btn-create-account {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    width: 100%;
    margin-top: 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-create-account:hover {
    background: #2563eb;
}

.login-link {
    text-align: center;
    margin-top: 24px;
    color: #4b5563;
    font-size: 14px;
}

.login-link a {
    color: #3b82f6;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 16px;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Dashboard Redesign Styles */
.dashboard-container {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.greeting-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0d6efd;
}

.wave-emoji {
    font-size: 1.5rem;
    animation: wave 0.5s ease-in-out;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.progress-timeline-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.month-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    height: 4px;
    background: #e9ecef;
    transform: translateY(-50%);
    z-index: 0;
}

.timeline-month {
    position: relative;
    z-index: 1;
    text-align: center;
}

.month-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    transition: all 0.3s ease;
}

.timeline-month.completed .month-indicator {
    background: #d4edda;
    border-color: #28a745;
}

.timeline-month.non-compliant .month-indicator {
    background: #f8d7da;
    border-color: #dc3545;
}

.timeline-month .month-indicator i {
    font-size: 18px;
}

.month-number {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.time-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.time-filters .btn {
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 14px;
}

.progress-circle-container {
    padding: 20px;
}

.circular-progress {
    width: 200px;
    height: 200px;
    position: relative;
}

.circular-progress svg {
    transform: rotate(0deg);
}

.monthly-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.log-activity-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    border: 2px solid #0d6efd;
}

.activity-icon {
    width: 80px;
    height: 80px;
    background: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.activity-icon i {
    font-size: 36px;
    color: #ffffff;
}

.tap-instruction {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 2px dashed #0d6efd;
}

.deadlines-card {
    border-left: 4px solid #ffc107;
}

.deadline-item-new {
    background: #fff;
    transition: all 0.3s ease;
}

.deadline-item-new:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.deadline-bar {
    border-radius: 2px;
    transition: width 0.3s ease;
}

.quick-links-card .quick-link-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-links-card .quick-link-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle i {
    font-size: 24px;
}

.documents-card {
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-tabs-custom {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs-custom .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
    background: transparent;
}

.nav-tabs-custom .nav-link:hover {
    color: #0d6efd;
}

.document-status-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.document-status-card i {
    font-size: 32px;
    margin-bottom: 10px;
}

.document-status-card.critical {
    background: #fff5f5;
    border-color: #dc3545;
    color: #dc3545;
}

.document-status-card.pending {
    background: #fff8e1;
    border-color: #ffc107;
    color: #856404;
}

.document-status-card.approved {
    background: #f0f8f5;
    border-color: #28a745;
    color: #28a745;
}

.document-status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.document-list .section-header {
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 15px;
}

.document-item {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.document-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    padding-left: 36px;
}

/* Page Loading Overlay */
#pageLoadingOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

#pageLoadingOverlay.visible {
    opacity: 1;
    pointer-events: all;
}

#pageLoadingOverlay.hiding {
    opacity: 0;
    pointer-events: none;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.page-loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #dee2e6;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: loaderSpin 0.75s linear infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

.page-loader-text {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ── Slack-style Page Loading Overlay ─────────────────────────────────────── */
#pageLoadingOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.35s ease;
}

#pageLoadingOverlay.hiding {
    opacity: 0;
    pointer-events: none;
}

/* Centre card */
.plo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: ploFadeUp 0.4s ease both;
}

@keyframes ploFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Logo ring + icon */
.plo-logo-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 4px;
}

.plo-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: #0d6efd;
    animation: ploSpin 0.9s linear infinite;
}

@keyframes ploSpin {
    to { transform: rotate(360deg); }
}

.plo-logo-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0d6efd;
    animation: ploPulse 1.8s ease-in-out infinite;
}

@keyframes ploPulse {
    0%, 100% { transform: scale(1);    opacity: 1;    }
    50%       { transform: scale(0.88); opacity: 0.65; }
}

/* App name */
.plo-app-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.3px;
}

/* Tagline */
.plo-tagline {
    margin: 0;
    font-size: 0.82rem;
    color: #718096;
    font-weight: 400;
}

/* Animated bar equaliser (Slack-style) */
.plo-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 22px;
    margin-top: 6px;
}

.plo-bars span {
    display: block;
    width: 5px;
    border-radius: 3px;
    background: #0d6efd;
    animation: ploBar 1.1s ease-in-out infinite;
}

.plo-bars span:nth-child(1) { animation-delay: 0s;    }
.plo-bars span:nth-child(2) { animation-delay: 0.15s; }
.plo-bars span:nth-child(3) { animation-delay: 0.3s;  }
.plo-bars span:nth-child(4) { animation-delay: 0.45s; }
.plo-bars span:nth-child(5) { animation-delay: 0.6s;  }

@keyframes ploBar {
    0%, 100% { height: 5px;  opacity: 0.4; }
    50%       { height: 22px; opacity: 1;   }
}

/* ── Avatar Skeleton Shimmer ───────────────────────────────────────────────── */
.avatar-skeleton {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: avatarShimmer 1.4s ease-in-out infinite;
}

@keyframes avatarShimmer {
    0%   { background-position: 200% 0;  }
    100% { background-position: -200% 0; }
}

/* Rotating text animation - updated */
.rotating-text {
    display: inline-block;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
    font-weight: 600;
    /* Color is now set dynamically via JavaScript */
}

/* Optional: Add a subtle pulse animation */
@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.rotating-text.pulse {
    animation: textPulse 0.3s ease-in-out;
}