/* ===== GIA LINH TOOLS - SHARED CSS v2.0 ===== */
/* Theme Toggle, Notifications, Shortcuts Modal, Notes, Light Mode */
/* Requires: css/variables.css loaded first */

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary, #12121a);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color, #2a2a3a);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover, #3a3a4a);
}
body.gl-light-mode ::-webkit-scrollbar-track {
    background: #f3f4f6;
}
body.gl-light-mode ::-webkit-scrollbar-thumb {
    background: #d1d5db;
}
body.gl-light-mode ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ===== COMMON LAYOUT COMPONENTS ===== */
/* Base top-bar - can be extended by page-specific CSS */
.gl-top-bar, .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color, #2a2a3a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: var(--z-sticky, 100);
}

/* Common button styles */
.gl-btn, .back-btn, .logout-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color, #2a2a3a);
    border-radius: var(--radius-sm, 8px);
    color: var(--text-secondary, #a0a0b0);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.back-btn:hover {
    border-color: var(--accent-cyan, #00d9ff);
    color: var(--accent-cyan, #00d9ff);
    background: rgba(0, 217, 255, 0.05);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

/* ===== THEME TOGGLE BUTTON ===== */
.gl-theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9000;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: rgba(30, 30, 40, 0.9);
    border: 2px solid rgba(255,255,255,0.1);
    color: var(--accent-cyan);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.gl-theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

/* ===== GLOBAL LIGHT MODE ===== */
body.gl-light-mode {
    background: linear-gradient(135deg, #f0f2f5, #e8eaf0) !important;
    color: #1c1e21 !important;
}
body.gl-light-mode::before {
    opacity: 0.08 !important;
}

/* Top bar */
body.gl-light-mode .top-bar {
    background: rgba(255,255,255,0.95) !important;
    border-bottom-color: #d1d5db !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
body.gl-light-mode .top-bar .user-welcome,
body.gl-light-mode .top-bar .user-name,
body.gl-light-mode .top-bar .page-title {
    color: #374151 !important;
}
body.gl-light-mode .top-bar .user-welcome strong {
    color: #1c1e21 !important;
}

/* Theme toggle in light mode */
body.gl-light-mode .gl-theme-toggle {
    background: rgba(255,255,255,0.95);
    border-color: #d1d5db;
    color: #f59e0b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Cards & sections */
body.gl-light-mode .tool-card,
body.gl-light-mode .stat-card,
body.gl-light-mode .stat-item,
body.gl-light-mode .form-section,
body.gl-light-mode .table-section,
body.gl-light-mode .product-card,
body.gl-light-mode .link-card,
body.gl-light-mode .resource-card,
body.gl-light-mode .add-section,
body.gl-light-mode .filter-section,
body.gl-light-mode .list-section,
body.gl-light-mode .info-banner,
body.gl-light-mode .search-box,
body.gl-light-mode .dashboard-section,
body.gl-light-mode .dashboard-header,
body.gl-light-mode .stats-grid .stat-card {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

/* Text colors */
body.gl-light-mode h1,
body.gl-light-mode h2,
body.gl-light-mode h3,
body.gl-light-mode .section-title h2,
body.gl-light-mode .product-name,
body.gl-light-mode .resource-name {
    color: #1c1e21 !important;
}
body.gl-light-mode p,
body.gl-light-mode span,
body.gl-light-mode .subtitle,
body.gl-light-mode .tool-description,
body.gl-light-mode .resource-desc {
    color: #4b5563 !important;
}

/* Inputs */
body.gl-light-mode input,
body.gl-light-mode select,
body.gl-light-mode textarea {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #1c1e21 !important;
}
body.gl-light-mode input::placeholder,
body.gl-light-mode textarea::placeholder {
    color: #9ca3af !important;
}
body.gl-light-mode input:focus,
body.gl-light-mode select:focus,
body.gl-light-mode textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
}

/* Tables */
body.gl-light-mode th {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-color: #e5e7eb !important;
}
body.gl-light-mode td {
    color: #1c1e21 !important;
    border-color: #e5e7eb !important;
}
body.gl-light-mode tr:hover td {
    background: #f9fafb !important;
}

/* Buttons */
body.gl-light-mode .logout-btn {
    border-color: #d1d5db !important;
    color: #65676b !important;
}
body.gl-light-mode .logout-btn:hover {
    background: rgba(239,68,68,0.1) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* Links */
body.gl-light-mode .product-link,
body.gl-light-mode .resource-link {
    background: rgba(99,102,241,0.08) !important;
    border-color: rgba(99,102,241,0.15) !important;
}

/* Modals */
body.gl-light-mode .modal-content,
body.gl-light-mode .edit-modal-content {
    background: #ffffff !important;
    border-color: #d1d5db !important;
}

/* Footer */
body.gl-light-mode .footer {
    color: #6b7280 !important;
}

/* Hide heavy visual effects in light mode */
body.gl-light-mode .glow-orb,
body.gl-light-mode .glow-orb-1,
body.gl-light-mode .glow-orb-2,
body.gl-light-mode .glow-orb-3,
body.gl-light-mode .crystal-container,
body.gl-light-mode .bubble-container,
body.gl-light-mode .shooting-star-container,
body.gl-light-mode .particle-container,
body.gl-light-mode .sakura-container,
body.gl-light-mode .sparkle-container,
body.gl-light-mode .scanlines,
body.gl-light-mode .matrix-column,
body.gl-light-mode .tech-cursor,
body.gl-light-mode .cursor-center,
body.gl-light-mode .cursor-bracket,
body.gl-light-mode .data-line,
body.gl-light-mode .hex-node,
body.gl-light-mode .scan-line,
body.gl-light-mode .particle,
body.gl-light-mode #techGrid {
    display: none !important;
}

/* Container bg */
body.gl-light-mode .container {
    background: transparent !important;
}

/* ===== NOTIFICATION BELL ===== */
.gl-notif-bell {
    position: relative;
    display: inline-flex;
    margin-right: 15px;
    vertical-align: middle;
}
.gl-notif-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gl-notif-btn:hover {
    color: var(--accent-cyan);
    border-color: rgba(0,217,255,0.3);
    background: rgba(0,217,255,0.1);
}
.gl-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: glNotifPulse 2s ease-in-out infinite;
}
@keyframes glNotifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Light mode bell */
body.gl-light-mode .gl-notif-btn {
    border-color: #d1d5db;
    color: #65676b;
}
body.gl-light-mode .gl-notif-btn:hover {
    color: #3b82f6;
    border-color: rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.1);
}

/* Notification Panel */
.gl-notif-panel {
    position: absolute;
    top: 55px;
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: var(--z-overlay);
    overflow: hidden;
}
.gl-notif-panel.show {
    display: flex;
    animation: glNotifSlideIn 0.2s ease;
}
@keyframes glNotifSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.gl-notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}
.gl-notif-panel-header h4 {
    font-size: var(--text-base);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}
.gl-notif-panel-header h4 i {
    color: var(--accent-cyan);
}
.gl-notif-panel-header button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-fast);
    font-size: var(--text-base);
}
.gl-notif-panel-header button:hover {
    color: var(--accent-cyan);
}
.gl-notif-list {
    overflow-y: auto;
    max-height: 400px;
    padding: 8px;
}
.gl-notif-item {
    display: flex;
    gap: var(--space-md);
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}
.gl-notif-item:hover {
    background: rgba(255,255,255,0.05);
}
.gl-notif-item.unread {
    background: rgba(0,217,255,0.05);
    border-left-color: var(--accent-cyan);
}
.gl-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0,217,255,0.15);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-sm);
}
.gl-notif-content {
    flex: 1;
    min-width: 0;
}
.gl-notif-content p {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.4;
    margin: 0 0 4px 0;
}
.gl-notif-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.gl-notif-user {
    font-size: var(--text-xs);
    color: var(--accent-cyan);
    margin-left: 10px;
}
.gl-notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.gl-notif-empty i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}
.gl-notif-empty p {
    margin: 0;
}

/* Light mode notification panel */
body.gl-light-mode .gl-notif-panel {
    background: #fff;
    border-color: #d1d5db;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
body.gl-light-mode .gl-notif-panel-header {
    border-bottom-color: #e5e7eb;
}
body.gl-light-mode .gl-notif-panel-header h4 {
    color: #1c1e21;
}
body.gl-light-mode .gl-notif-item.unread {
    background: rgba(59,130,246,0.06);
    border-left-color: #3b82f6;
}
body.gl-light-mode .gl-notif-content p {
    color: #1c1e21;
}
body.gl-light-mode .gl-notif-icon {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

/* ===== NOTIFICATION TOAST ===== */
.gl-notif-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: var(--z-cursor);
    transform: translateX(120%);
    transition: transform 0.3s var(--ease-out-back);
    box-shadow: var(--shadow-glow-cyan);
    max-width: 400px;
    font-size: var(--text-sm);
}
.gl-notif-toast.show {
    transform: translateX(0);
}
.gl-notif-toast i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
}
body.gl-light-mode .gl-notif-toast {
    background: #fff;
    border-color: #3b82f6;
    color: #1c1e21;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
body.gl-light-mode .gl-notif-toast i {
    color: #3b82f6;
}

/* ===== SHORTCUTS MODAL ===== */
.gl-shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.gl-shortcuts-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    animation: glNotifSlideIn 0.3s ease;
}
.gl-shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}
.gl-shortcuts-header h3 {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.1rem;
}
.gl-shortcuts-header h3 i {
    color: var(--accent-cyan);
}
.gl-shortcuts-header button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}
.gl-shortcuts-header button:hover {
    color: var(--danger-color);
}
.gl-shortcuts-body {
    padding: 20px 25px;
}
.gl-shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gl-shortcut-item:last-child {
    border-bottom: none;
}
.gl-shortcut-item kbd {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xs);
    color: var(--accent-cyan);
    font-size: var(--text-sm);
    font-family: inherit;
    font-weight: 600;
    margin: 0 2px;
}
.gl-shortcut-item span {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* Light mode shortcuts */
body.gl-light-mode .gl-shortcuts-modal {
    background: rgba(0,0,0,0.3);
}
body.gl-light-mode .gl-shortcuts-content {
    background: #fff;
    border-color: #d1d5db;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
body.gl-light-mode .gl-shortcuts-header {
    border-bottom-color: #e5e7eb;
}
body.gl-light-mode .gl-shortcuts-header h3 {
    color: #1c1e21;
}
body.gl-light-mode .gl-shortcut-item kbd {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #3b82f6;
}
body.gl-light-mode .gl-shortcut-item span {
    color: #65676b;
}
body.gl-light-mode .gl-shortcut-item {
    border-bottom-color: #f3f4f6;
}

/* ===== NOTES/COMMENTS SECTION ===== */
.gl-notes-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed rgba(255,255,255,0.08);
}
.gl-notes-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #a0a0b0;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    padding: 8px 0;
    transition: color 0.3s;
    width: 100%;
    text-align: left;
}
.gl-notes-toggle:hover {
    color: #00d9ff;
}
.gl-notes-toggle .notes-count {
    background: rgba(0,217,255,0.15);
    color: #00d9ff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}
.gl-notes-body {
    display: none;
    margin-top: 10px;
}
.gl-notes-body.show {
    display: block;
}
.gl-notes-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.gl-note-item {
    padding: 10px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    margin-bottom: 8px;
    position: relative;
}
.gl-note-item .note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.gl-note-item .note-user {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
}
.gl-note-item .note-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.gl-note-item .note-text {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.5;
}
.gl-note-item .note-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #606070;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    font-size: 0.8rem;
}
.gl-note-item:hover .note-delete {
    opacity: 1;
}
.gl-note-item .note-delete:hover {
    color: #ef4444;
}
.gl-note-input-row {
    display: flex;
    gap: 8px;
}
.gl-note-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px;
    color: #fff !important;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s;
}
.gl-note-input:focus {
    outline: none;
    border-color: #00d9ff !important;
}
.gl-note-send-btn {
    padding: 10px 16px;
    background: var(--accent-cyan);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--bg-primary);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.gl-note-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}
.gl-notes-empty {
    text-align: center;
    padding: 15px;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Light mode notes */
body.gl-light-mode .gl-notes-section {
    border-top-color: #e5e7eb;
}
body.gl-light-mode .gl-notes-toggle {
    color: #65676b;
}
body.gl-light-mode .gl-notes-toggle:hover {
    color: #3b82f6;
}
body.gl-light-mode .gl-notes-toggle .notes-count {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}
body.gl-light-mode .gl-note-item {
    background: #f9fafb;
}
body.gl-light-mode .gl-note-item .note-user {
    color: #3b82f6;
}
body.gl-light-mode .gl-note-item .note-text {
    color: #374151;
}
body.gl-light-mode .gl-note-input {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #1c1e21 !important;
}
body.gl-light-mode .gl-note-send-btn {
    background: #3b82f6;
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .gl-theme-toggle {
        top: auto;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .gl-notif-panel {
        width: calc(100vw - 20px);
        right: -10px;
    }
    .gl-shortcuts-content {
        width: 95%;
        max-width: none;
    }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== OFFLINE BANNER ===== */
.gl-offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--danger-color), #b91c1c);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translateY(-100%);
    transition: transform var(--duration-normal) ease;
}
.gl-offline-banner.show {
    transform: translateY(0);
}
.gl-offline-banner i {
    font-size: 1.1rem;
}

/* ===== FLOATING TOAST (fallback) ===== */
.gl-floating-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: var(--z-cursor);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    font-size: var(--text-sm);
    font-weight: 500;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}
.gl-floating-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.gl-floating-toast.success {
    background: var(--success-color);
    color: white;
}
.gl-floating-toast.error {
    background: var(--danger-color);
    color: white;
}
.gl-floating-toast i {
    flex-shrink: 0;
}
body.gl-light-mode .gl-floating-toast.success {
    background: #059669;
}
body.gl-light-mode .gl-floating-toast.error {
    background: #dc2626;
}

/* ===== BUTTON LOADING STATE ===== */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: glBtnSpin 0.6s linear infinite;
}
@keyframes glBtnSpin {
    to { transform: rotate(360deg); }
}

/* ===== UTILITY CLASSES ===== */
.gl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.gl-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gl-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gl-gap-sm { gap: var(--space-sm); }
.gl-gap-md { gap: var(--space-md); }
.gl-gap-lg { gap: var(--space-lg); }

.gl-text-cyan { color: var(--accent-cyan) !important; }
.gl-text-magenta { color: var(--accent-magenta) !important; }
.gl-text-lime { color: var(--accent-lime) !important; }
.gl-text-gold { color: var(--accent-gold) !important; }
.gl-text-success { color: var(--success-color) !important; }
.gl-text-danger { color: var(--danger-color) !important; }
.gl-text-warning { color: var(--warning-color) !important; }
.gl-text-muted { color: var(--text-muted) !important; }

/* ===== SKELETON LOADING ===== */
.gl-skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card, #1a1a24) 0%,
        var(--bg-card-hover, #22222e) 20%,
        var(--bg-card, #1a1a24) 40%,
        var(--bg-card, #1a1a24) 100%
    );
    background-size: 200% 100%;
    animation: gl-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm, 8px);
}

@keyframes gl-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gl-skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.gl-skeleton-text.short { width: 40%; }
.gl-skeleton-text.medium { width: 70%; }
.gl-skeleton-text.long { width: 100%; }

.gl-skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
    border-radius: 6px;
}

.gl-skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gl-skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md, 12px);
    flex-shrink: 0;
}

.gl-skeleton-btn {
    height: 40px;
    width: 120px;
    border-radius: var(--radius-sm, 8px);
}

.gl-skeleton-card {
    padding: 20px;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid var(--border-color, #2a2a3a);
}

.gl-skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.gl-skeleton-row:last-child {
    margin-bottom: 0;
}

/* Skeleton Card Preset */
.gl-skeleton-product-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card, #1a1a24);
    border: 1px solid var(--border-color, #2a2a3a);
    border-radius: var(--radius-lg, 16px);
}

.gl-skeleton-product-card .gl-skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gl-skeleton-product-card .gl-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Skeleton Table Row */
.gl-skeleton-table-row {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color, #2a2a3a);
}

/* Light mode skeleton */
body.gl-light-mode .gl-skeleton {
    background: linear-gradient(
        90deg,
        #e5e7eb 0%,
        #f3f4f6 20%,
        #e5e7eb 40%,
        #e5e7eb 100%
    );
    background-size: 200% 100%;
}

/* ===== ENHANCED RESPONSIVE ===== */
/* Mobile First Breakpoints */
@media (max-width: 480px) {
    :root {
        --space-md: 12px;
        --space-lg: 16px;
        --text-base: 0.9rem;
        --text-lg: 1rem;
        --text-xl: 1.2rem;
    }

    .container {
        padding: 15px 12px !important;
    }

    /* Top bar mobile */
    .top-bar {
        padding: 0 12px !important;
        height: 55px !important;
        flex-wrap: wrap;
    }

    .top-bar .user-welcome {
        font-size: 0.8rem;
    }

    .top-bar .user-badge {
        display: none;
    }

    .logout-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .logout-btn span {
        display: none;
    }

    /* Cards mobile */
    .tool-card,
    .stat-card,
    .product-card,
    .resource-card {
        padding: 16px !important;
    }

    /* Forms mobile */
    .form-row {
        grid-template-columns: 1fr !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }

    /* Tables mobile */
    .table-section {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    /* Modals mobile */
    .modal-content,
    .edit-modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 10px !important;
        max-height: 90vh !important;
    }

    /* Buttons mobile */
    .btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }

    /* Header mobile */
    .header h1,
    .page-header h1 {
        font-size: 1.4rem !important;
    }

    .logo h1 {
        font-size: 1.6rem !important;
    }

    .logo-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Tools grid mobile */
    .tools-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Filter bar mobile */
    .filter-bar,
    .filter-section {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100% !important;
    }

    /* Tabs mobile */
    .tabs {
        flex-direction: column !important;
    }

    .tab-btn {
        font-size: 0.85rem !important;
    }

    /* Notification panel mobile */
    .gl-notif-panel {
        right: -10px !important;
        width: calc(100vw - 20px) !important;
        max-width: 350px !important;
    }

    /* Theme toggle mobile */
    .gl-theme-toggle {
        width: 40px !important;
        height: 40px !important;
        top: 70px !important;
        right: 10px !important;
    }

    /* Pagination mobile */
    .gl-pagination {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .gl-page-btn {
        min-width: 36px !important;
        height: 36px !important;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 20px 16px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .modal-content,
    .edit-modal-content {
        width: 90% !important;
        max-width: 600px !important;
    }

    .top-bar {
        padding: 0 20px !important;
    }
}

/* Small Desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    button,
    .tab-btn,
    .gl-page-btn {
        min-height: 44px;
    }

    /* Remove hover effects that don't work */
    .tool-card:hover,
    .stat-card:hover,
    .product-card:hover {
        transform: none !important;
    }

    /* Disable custom cursor on touch */
    .tech-cursor,
    .cursor-center,
    .cursor-bracket,
    #techGrid {
        display: none !important;
    }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
    .top-bar {
        height: 50px !important;
    }

    .container {
        padding-top: 60px !important;
    }

    .modal-content {
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
}

/* ===== STICKY NOTES COMPONENT ===== */
.gl-sticky-notes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.gl-sticky-note {
    position: relative;
    min-height: 180px;
    padding: 20px;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    cursor: default;
}

.gl-sticky-note:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Note colors */
.gl-sticky-note.yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.gl-sticky-note.pink {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #9d174d;
}

.gl-sticky-note.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.gl-sticky-note.green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.gl-sticky-note.purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #5b21b6;
}

.gl-sticky-note.orange {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #c2410c;
}

/* Dark theme notes */
.gl-sticky-note.dark {
    background: linear-gradient(135deg, var(--bg-card, #1a1a24), var(--bg-card-hover, #22222e));
    color: var(--text-primary);
    border: 1px solid var(--border-color, #2a2a3a);
}

.gl-sticky-note-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.gl-sticky-note-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    flex: 1;
    word-break: break-word;
}

.gl-sticky-note-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.gl-sticky-note:hover .gl-sticky-note-actions {
    opacity: 1;
}

.gl-sticky-note-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
    color: inherit;
}

.gl-sticky-note-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.gl-sticky-note-btn.delete:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.gl-sticky-note-content {
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 150px;
    overflow-y: auto;
}

.gl-sticky-note-footer {
    position: absolute;
    bottom: 12px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.7;
}

.gl-sticky-note-tag {
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Add note button */
.gl-add-note-btn {
    min-height: 180px;
    border: 2px dashed var(--border-color, #2a2a3a);
    border-radius: var(--radius-md, 12px);
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted, #606070);
    font-size: 0.9rem;
    transition: var(--transition);
}

.gl-add-note-btn:hover {
    border-color: var(--accent-cyan, #00d9ff);
    color: var(--accent-cyan, #00d9ff);
    background: rgba(0, 217, 255, 0.05);
}

.gl-add-note-btn i {
    font-size: 2rem;
}

/* Note modal */
.gl-note-modal {
    position: fixed;
    inset: 0;
    background: var(--backdrop, rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal, 1000);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.gl-note-modal.show {
    opacity: 1;
    visibility: visible;
}

.gl-note-modal-content {
    background: var(--bg-card, #1a1a24);
    border: 1px solid var(--border-color, #2a2a3a);
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    width: 90%;
    max-width: 450px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.gl-note-modal.show .gl-note-modal-content {
    transform: scale(1);
}

.gl-note-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gl-note-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gl-note-modal-header h3 i {
    color: var(--accent-cyan, #00d9ff);
}

.gl-note-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary, #12121a);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.gl-note-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.gl-note-form-group {
    margin-bottom: 16px;
}

.gl-note-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.gl-note-form-group input,
.gl-note-form-group textarea,
.gl-note-form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary, #12121a);
    border: 1px solid var(--border-color, #2a2a3a);
    border-radius: var(--radius-sm, 8px);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.gl-note-form-group input:focus,
.gl-note-form-group textarea:focus,
.gl-note-form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan, #00d9ff);
}

.gl-note-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.gl-note-color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gl-note-color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.gl-note-color-option:hover {
    transform: scale(1.1);
}

.gl-note-color-option.selected {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-card);
}

.gl-note-color-option.yellow { background: #fde68a; }
.gl-note-color-option.pink { background: #fbcfe8; }
.gl-note-color-option.blue { background: #bfdbfe; }
.gl-note-color-option.green { background: #a7f3d0; }
.gl-note-color-option.purple { background: #ddd6fe; }
.gl-note-color-option.orange { background: #fed7aa; }
.gl-note-color-option.dark { background: #374151; }

.gl-note-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.gl-note-modal-actions button {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm, 8px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.gl-note-cancel-btn {
    background: var(--bg-secondary, #12121a);
    border: 1px solid var(--border-color, #2a2a3a);
    color: var(--text-secondary);
}

.gl-note-cancel-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.gl-note-save-btn {
    background: var(--accent-cyan, #00d9ff);
    border: none;
    color: #0a0a0f;
}

.gl-note-save-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ===== GL COMPONENTS - MODAL ===== */
.gl-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal, 1000);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.gl-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.gl-modal-container {
    position: relative;
    background: var(--bg-card, #1a1a24);
    border: 1px solid var(--border-color, #2a2a3a);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.gl-modal.show .gl-modal-container {
    transform: scale(1) translateY(0);
}

.gl-modal-sm { width: 100%; max-width: 400px; }
.gl-modal-md { width: 100%; max-width: 600px; }
.gl-modal-lg { width: 100%; max-width: 800px; }
.gl-modal-xl { width: 100%; max-width: 1000px; }

.gl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #2a2a3a);
}

.gl-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.gl-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color, #2a2a3a);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gl-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.gl-modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* ===== GL COMPONENTS - CONFIRM DIALOG ===== */
.gl-confirm-content {
    text-align: center;
}

.gl-confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.gl-confirm-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.gl-confirm-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.gl-confirm-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.gl-confirm-message {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.gl-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===== GL COMPONENTS - BUTTONS ===== */
.gl-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm, 8px);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.gl-btn-primary {
    background: var(--accent-cyan, #00d9ff);
    color: #0a0a0f;
}

.gl-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.gl-btn-secondary {
    background: var(--bg-secondary, #12121a);
    border: 1px solid var(--border-color, #2a2a3a);
    color: var(--text-secondary);
}

.gl-btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.gl-btn-danger {
    background: #ef4444;
    color: white;
}

.gl-btn-danger:hover {
    background: #dc2626;
}

/* ===== GL COMPONENTS - LOADING OVERLAY ===== */
.gl-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal, 1000);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gl-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.gl-loading-content {
    text-align: center;
}

.gl-loading-spinner {
    font-size: 3rem;
    color: var(--accent-cyan, #00d9ff);
    margin-bottom: 16px;
}

.gl-loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== GL COMPONENTS - EMPTY STATE ===== */
.gl-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.gl-empty-state i {
    font-size: 4rem;
    color: var(--accent-cyan, #00d9ff);
    opacity: 0.3;
    margin-bottom: 20px;
}

.gl-empty-state h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gl-empty-state p {
    margin-bottom: 20px;
}

.gl-empty-action {
    margin-top: 10px;
}

/* ===== GL COMPONENTS - SKELETON LOADER ===== */
.gl-skeleton-container {
    padding: 20px;
}

.gl-skeleton-item {
    padding: 20px;
    background: var(--bg-card, #1a1a24);
    border-radius: var(--radius-md, 12px);
    margin-bottom: 16px;
}

.gl-skeleton {
    background: linear-gradient(90deg, 
        var(--bg-secondary, #12121a) 25%, 
        var(--bg-card-hover, #22222e) 50%, 
        var(--bg-secondary, #12121a) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gl-skeleton-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.gl-skeleton-badge {
    width: 80px;
    height: 28px;
}

.gl-skeleton-title {
    flex: 1;
    height: 28px;
}

.gl-skeleton-line {
    height: 16px;
    margin-bottom: 8px;
}

.gl-skeleton-cell {
    height: 20px;
    flex: 1;
}

.gl-skeleton-text {
    height: 16px;
    width: 100%;
}

/* ===== GL COMPONENTS - BADGE ===== */
.gl-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gl-badge-default {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.gl-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.gl-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.gl-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.gl-badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* ===== GL COMPONENTS - TOOLTIP ===== */
.gl-tooltip {
    position: fixed;
    background: var(--bg-card, #1a1a24);
    border: 1px solid var(--border-color, #2a2a3a);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gl-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Light mode overrides for components */
body.gl-light-mode .gl-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body.gl-light-mode .gl-modal-container {
    background: #ffffff;
    border-color: #d1d5db;
}

body.gl-light-mode .gl-loading-overlay {
    background: rgba(255, 255, 255, 0.9);
}

body.gl-light-mode .gl-skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
}

body.gl-light-mode .gl-tooltip {
    background: #ffffff;
    border-color: #d1d5db;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== PRINT STYLES ===== */
@media print {
    .gl-theme-toggle,
    .gl-notif-bell,
    .gl-offline-banner,
    .gl-floating-toast,
    .gl-notif-toast,
    .glow-orb,
    .crystal-container,
    .particle-container,
    .tech-cursor,
    #techGrid,
    .gl-sticky-note-actions,
    .gl-modal,
    .gl-loading-overlay,
    .gl-tooltip {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .gl-sticky-note {
        break-inside: avoid;
    }
}