/* 
   Light Tech Theme - Bright & Subtle Tech Style
   Version: 2.0
   Date: 2026-01-26
   Description: 明亮微科技主題 - 保持科技感但更輕微、明亮
*/

/* ===== Light Tech Background - 達麗建設企業色 ===== */
body {
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 50%, #faf9f7 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 155, 53, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 54, 93, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle Animated Grid Background - 企業色網格 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(26, 54, 93, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 54, 93, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 25s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ===== Light Glass Panel ===== */
.glass-panel {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    position: relative;
    z-index: 1;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(230, 155, 53, 0.4) 20%, 
        rgba(21, 101, 192, 0.4) 80%, 
        transparent);
    animation: scanline 4s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes scanline {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ===== Light Tech Form Elements ===== */
.form-section {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(230, 155, 53, 0.15);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.form-section:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(230, 155, 53, 0.3);
    box-shadow: 0 4px 20px rgba(230, 155, 53, 0.1);
    transform: translateY(-2px);
}

.form-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(230, 155, 53, 0.3), 
        transparent);
}

/* Labels with Subtle Tech Effect - 企業色 */
label {
    color: var(--dali-primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

label::before {
    content: '▸';
    color: var(--dali-orange);
    margin-right: 6px;
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* Input Fields Light Tech Style */
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(26, 54, 93, 0.2) !important;
    color: var(--dali-primary) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.05);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--dali-orange) !important;
    box-shadow: 
        0 0 0 3px rgba(230, 155, 53, 0.15),
        0 4px 16px rgba(230, 155, 53, 0.2) !important;
    outline: none;
}

input::placeholder {
    color: rgba(26, 54, 93, 0.4) !important;
}

/* Buttons with Subtle Glow */
.btn-primary {
    background: linear-gradient(135deg, #E69B35 0%, #d08a2e 100%) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(230, 155, 53, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1) !important;
    color: white !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(230, 155, 53, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(230, 155, 53, 0.3) !important;
    color: #2c3e50 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--dali-orange) !important;
    box-shadow: 0 4px 16px rgba(230, 155, 53, 0.15);
}

/* Room Tags with Subtle Glow */
.room-tag {
    background: rgba(230, 155, 53, 0.12) !important;
    border: 1px solid rgba(230, 155, 53, 0.3) !important;
    color: #d08a2e !important;
    box-shadow: 0 2px 8px rgba(230, 155, 53, 0.15);
}

.room-tag:hover {
    background: rgba(230, 155, 53, 0.2) !important;
    box-shadow: 0 4px 12px rgba(230, 155, 53, 0.25);
}

.room-tag.status-ok {
    border-color: rgba(46, 125, 50, 0.4) !important;
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.2);
}

.room-tag.status-busy {
    border-color: rgba(211, 47, 47, 0.4) !important;
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.2);
    animation: alertPulse 1.5s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* Tags (Attendees) */
.tag {
    background: rgba(21, 101, 192, 0.12) !important;
    border: 1px solid rgba(21, 101, 192, 0.3) !important;
    color: #1565c0 !important;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.15);
}

.tag:hover {
    background: rgba(21, 101, 192, 0.2) !important;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

/* Search Container */
.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(230, 155, 53, 0.6);
    z-index: 2;
    font-size: 1.1rem;
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% { 
        opacity: 0.6;
        text-shadow: 0 0 3px rgba(230, 155, 53, 0.2);
    }
    50% { 
        opacity: 0.9;
        text-shadow: 0 0 8px rgba(230, 155, 53, 0.4);
    }
}

/* Search Dropdown */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(230, 155, 53, 0.2);
    border-radius: 12px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(230, 155, 53, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-item {
    padding: 12px 16px;
    color: #2c3e50;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(230, 155, 53, 0.1);
    padding-left: 20px;
    border-left: 3px solid rgba(230, 155, 53, 0.6);
}

.search-item .name {
    font-weight: 600;
    color: var(--dali-primary);
    flex: 1;
}

.search-item .email {
    font-size: 0.85rem;
    color: rgba(230, 155, 53, 0.7);
    font-family: 'Courier New', monospace;
}

.search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(230, 155, 53, 0.3);
    border-radius: 3px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 155, 53, 0.5);
}

/* Email Icon for External Input */
.email-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(21, 101, 192, 0.6);
    z-index: 2;
    font-size: 1.1rem;
    animation: emailPulse 2s ease-in-out infinite;
}

@keyframes emailPulse {
    0%, 100% { 
        opacity: 0.6;
        text-shadow: 0 0 3px rgba(21, 101, 192, 0.2);
    }
    50% { 
        opacity: 0.9;
        text-shadow: 0 0 8px rgba(21, 101, 192, 0.4);
    }
}

/* Hint Boxes with Subtle Border */
.hint-box {
    background: rgba(255, 255, 255, 0.7) !important;
    border-left: 3px solid var(--dali-orange) !important;
    color: #2c3e50 !important;
    box-shadow: -3px 0 10px rgba(230, 155, 53, 0.15);
}

.hint-info {
    border-left-color: #42a5f5 !important;
    box-shadow: -3px 0 10px rgba(66, 165, 245, 0.15);
}

.hint-success {
    border-left-color: #66bb6a !important;
    box-shadow: -3px 0 10px rgba(102, 187, 106, 0.15);
}

/* Header Enhancement - 企業色 */
.header {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(45, 74, 107, 0.95) 100%) !important;
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--dali-orange);
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.15);
    color: rgba(255, 255, 255, 0.95) !important;
}

.header h1 {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 8px rgba(230, 155, 53, 0.3);
}

.header h1 a {
    color: rgba(255, 255, 255, 0.95) !important;
}

.header-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.9) !important;
}

.header-badge i,
.header-badge span,
.header-badge * {
    color: rgba(255, 255, 255, 0.9) !important;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-back {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-back i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-back:hover i {
    color: rgba(255, 255, 255, 1) !important;
}

/* Toggle Switch Subtle Glow */
.toggle-slider {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

input:checked + .toggle-slider {
    background-color: var(--dali-orange) !important;
    box-shadow: 0 2px 10px rgba(230, 155, 53, 0.3);
}

/* Quill Editor Light Theme */
#editor-container {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(230, 155, 53, 0.2) !important;
}

.ql-toolbar {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(230, 155, 53, 0.2) !important;
}

.ql-editor {
    color: #2c3e50 !important;
}

.ql-editor.ql-blank::before {
    color: rgba(44, 62, 80, 0.4) !important;
}

/* Upload Zone */
.upload-zone {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 2px dashed rgba(230, 155, 53, 0.3) !important;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    background: rgba(230, 155, 53, 0.08) !important;
    border-color: var(--dali-orange) !important;
    box-shadow: 0 4px 20px rgba(230, 155, 53, 0.15);
}

/* Loading Screen */
#pageLoading {
    background: rgba(245, 247, 250, 0.95) !important;
    backdrop-filter: blur(10px);
}

#pageLoading i {
    filter: drop-shadow(0 0 10px rgba(230, 155, 53, 0.4));
}

#loadingText {
    color: #2c3e50;
    text-shadow: 0 2px 6px rgba(230, 155, 53, 0.2);
}

/* Modal Enhancement */
.modal-overlay {
    backdrop-filter: blur(10px) !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

.modal-card {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(230, 155, 53, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, rgba(230, 155, 53, 0.9) 0%, rgba(208, 138, 46, 0.9) 100%) !important;
}

.modal-body {
    color: var(--dali-primary) !important;
}

.modal-title {
    color: var(--dali-primary) !important;
}

.modal-subtitle {
    color: rgba(26, 54, 93, 0.7) !important;
}

/* File List */
.file-item {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(230, 155, 53, 0.15) !important;
    color: #2c3e50 !important;
}

/* Recurrence Options */
#recurrenceOptions {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(230, 155, 53, 0.2) !important;
}

/* Room Status */
.room-status {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid rgba(230, 155, 53, 0.15);
}

/* Text Colors */
.text-orange {
    color: #E69B35 !important;
    text-shadow: 0 1px 4px rgba(230, 155, 53, 0.2);
}

.sub-label {
    color: rgba(44, 62, 80, 0.6) !important;
}

/* Scrollbar Light Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(230, 155, 53, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 155, 53, 0.5);
}

/* Floating Animation for Form */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.glass-panel {
    animation: float 8s ease-in-out infinite;
}

/* Corner Decorations */
.glass-panel::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-top: 2px solid rgba(230, 155, 53, 0.3);
    border-right: 2px solid rgba(230, 155, 53, 0.3);
    pointer-events: none;
}

/* ===== Service Cards (for index.html) ===== */
.service-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(230, 155, 53, 0.15) !important;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    overflow: visible !important;
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(230, 155, 53, 0.3) !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 0 20px rgba(230, 155, 53, 0.15) !important;
    transform: translateY(-4px);
}

.service-card::after {
    background: var(--dali-orange) !important;
    box-shadow: 0 2px 8px rgba(230, 155, 53, 0.3);
}

.card-icon {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
}

.service-card:hover .card-icon {
    background: var(--dali-orange) !important;
    box-shadow: 0 8px 25px rgba(230, 155, 53, 0.4) !important;
}

.card-title {
    color: var(--dali-primary) !important;
    flex-shrink: 0 !important;
}

.card-desc {
    color: rgba(26, 54, 93, 0.7) !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    white-space: normal !important;
    min-height: auto !important;
    margin-top: auto !important;
    padding-top: 8px !important;
}

/* ===== Tables (for admin.html) ===== */
.table-wrapper {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(230, 155, 53, 0.15) !important;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

table.glass-table thead {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 2px solid rgba(230, 155, 53, 0.2) !important;
}

table.glass-table th {
    color: #2c3e50 !important;
}

table.glass-table td {
    color: rgba(44, 62, 80, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

table.glass-table tr:hover {
    background: rgba(230, 155, 53, 0.08) !important;
}

/* ===== Login Box (for index.html) ===== */
.login-box {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 5px solid var(--dali-orange) !important;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.9) !important;
}

.login-box h2 {
    color: #2c3e50 !important;
    text-shadow: 0 2px 8px rgba(230, 155, 53, 0.2);
}

.login-box p {
    color: rgba(44, 62, 80, 0.7) !important;
}

.login-btn {
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(230, 155, 53, 0.2) !important;
}

.login-btn:hover {
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(230, 155, 53, 0.3) !important;
}

/* ===== Search Box (for admin.html, addressbook.html) ===== */
.search-section {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(230, 155, 53, 0.15) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-box input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(230, 155, 53, 0.2) !important;
    color: #2c3e50 !important;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--dali-orange) !important;
    box-shadow: 
        0 0 0 3px rgba(230, 155, 53, 0.15),
        0 4px 16px rgba(230, 155, 53, 0.2) !important;
}

.search-box i {
    color: rgba(230, 155, 53, 0.6) !important;
}

/* ===== Pagination (for admin.html) ===== */
.pagination {
    border-top: 1px solid rgba(230, 155, 53, 0.15) !important;
}

.page-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(26, 54, 93, 0.2) !important;
    color: var(--dali-primary) !important;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--dali-orange) !important;
    color: var(--dali-orange) !important;
    box-shadow: 0 2px 12px rgba(230, 155, 53, 0.2);
}

.page-btn.active {
    background: var(--dali-orange) !important;
    border-color: var(--dali-orange) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(230, 155, 53, 0.3);
}

/* ===== Tabs (for admin.html) ===== */
.tab-nav {
    border-bottom: 2px solid rgba(230, 155, 53, 0.15) !important;
}

.tab-btn {
    color: rgba(26, 54, 93, 0.7) !important;
}

.tab-btn:hover {
    background: rgba(230, 155, 53, 0.08) !important;
    color: var(--dali-orange) !important;
}

.tab-btn.active {
    background: rgba(230, 155, 53, 0.12) !important;
    color: var(--dali-orange) !important;
    box-shadow: 0 2px 10px rgba(230, 155, 53, 0.15);
}

/* ===== Avatar & Badges ===== */
.avatar {
    box-shadow: 0 4px 10px rgba(230, 155, 53, 0.2) !important;
}

.dept-badge {
    background: rgba(21, 101, 192, 0.12) !important;
    color: #1565c0 !important;
    border: 1px solid rgba(21, 101, 192, 0.3) !important;
}

/* ===== Main Content ===== */
.main-content {
    position: relative;
    z-index: 1;
}

/* ===== User Info ===== */
/* Header 中的用戶信息 */
.header .user-name,
.header .user-id {
    color: rgba(255, 255, 255, 0.9) !important;
}

.user-info .user-name,
.user-info .user-id {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 表格中的用戶名字 - 深色 */
table .user-name,
.glass-table .user-name {
    color: var(--dali-primary) !important;
}

/* ===== Chat Window (if used) ===== */
.chat-window {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(230, 155, 53, 0.15) !important;
    backdrop-filter: blur(20px);
}

.chat-header {
    background: var(--dali-orange) !important;
    box-shadow: 0 2px 12px rgba(230, 155, 53, 0.25);
}

.chat-body {
    background: rgba(245, 247, 250, 0.5) !important;
}

.message {
    color: var(--dali-primary) !important;
}

.msg-ai {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(230, 155, 53, 0.15) !important;
}

.msg-user {
    background: var(--dali-orange) !important;
}

.chat-input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(26, 54, 93, 0.2) !important;
    color: var(--dali-primary) !important;
}

.chat-input:focus {
    border-color: var(--dali-orange) !important;
    box-shadow: 0 2px 12px rgba(230, 155, 53, 0.2);
}

/* ===== Teams Toast ===== */
#teamsToast {
    background: rgba(255, 255, 255, 0.98) !important;
    border-left: 4px solid var(--teams-color) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.teams-content h4 {
    color: var(--dali-primary) !important;
}

.teams-content p {
    color: rgba(26, 54, 93, 0.7) !important;
}

/* ===== Widget Buttons ===== */
.widget-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(26, 54, 93, 0.2) !important;
    color: var(--dali-primary) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.1) !important;
}

.widget-btn:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.05);
}

.widget-btn.teams {
    background: var(--teams-color) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(98, 100, 167, 0.25) !important;
}

.widget-btn.chat {
    background: var(--dali-orange) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(230, 155, 53, 0.25) !important;
}
