:root {
    --bg-color: #ffffff;
    --bg-secondary: #ffffff;
    --text-primary: #1e272e;
    --text-secondary: #485e6a;
    --accent-color: #6c5ce7;
    --accent-hover: #4834d4;
    --node-bg: rgba(255, 255, 255, 0.95);
    --node-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --header-height: 60px;
    --gantt-header-height: 72px;
    --gantt-row-height: 36px;
    --gantt-sidebar-width: 320px;
}

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

.gantt-zoom-display {
    font-size: 12px;
    color: #666;
    width: 40px;
    text-align: center;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    /* Prevent body scroll, use canvas pan */
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.top-bar {
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--node-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Added shadow for depth */
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2000;
    position: relative;
}

.header-spacer {
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-divider {
    width: 1px;
    height: 20px;
    background: var(--node-border);
}

.brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.brand-link:hover .brand-text {
    color: var(--accent-color);
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
}

#app-logo {
    cursor: pointer !important;
    transition: opacity 0.2s;
}

#app-logo:hover {
    opacity: 0.8;
}

.view-controls button {
    background: transparent;
    border: 1px solid var(--node-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-controls button.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
}

.view-controls button:hover:not(.active) {
    background: rgba(108, 92, 231, 0.05);
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.btn-icon-circular {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.2);
}

.btn-icon-circular:hover {
    transform: scale(1.15);
    background: #5b4bc4;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-icon-circular .plus-icon {
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-icon-transparent {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
}

.btn-icon-transparent:hover {
    transform: scale(1.15);
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-color);
}

.backup-section h4 {
    margin: 0 0 5px 0;
    color: #1e293b;
    font-size: 1rem;
}

.backup-section .description {
    margin: 0 0 15px 0;
    color: #64748b;
    font-size: 0.85rem;
}


/* Main Content */
.content-area {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#diagram-canvas {
    width: 100%;
    height: 100%;
}

.view-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    background: #ffffff;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.view-panel.active {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Node Interaction Elements */
.node-group {
    cursor: grab;
}

.node-group:active {
    cursor: grabbing;
}

/* Dashboard Styles */
.dashboard-header {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--node-border);
}

.dashboard-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-actions span {
    display: none;
    /* Hide old inline spans if any remain */
}

.btn-card-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #64748b;
    -webkit-user-select: none;
    user-select: none;
}

.btn-card-action:hover {
    transform: scale(1.15) translateY(-2px);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-card-action.edit-btn {
    color: var(--accent-color);
    border-color: rgba(108, 92, 231, 0.2);
}

.btn-card-action.edit-btn:hover {
    background: rgba(108, 92, 231, 0.05);
    border-color: var(--accent-color);
}

.btn-card-action.delete-btn:hover {
    background: #fff5f5;
    border-color: #ff7675;
}

/* Backup Modal Styles */
.backup-actions {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
}

.backup-section-divider {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.header-right-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-controls {
    display: flex;
    gap: 1px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.view-controls button {
    padding: 6px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.view-controls button.active {
    background: #fff;
    color: var(--accent-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Hide navigation buttons if needed based on context */
.hidden-nav {
    display: none !important;
}

/* Header Actions (Global) */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box input {
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 250px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Welcome Hero Section */
.welcome-hero {
    position: relative;
    padding: 20px 60px 0 60px;
    /* Further reduced vertical padding */
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 10;
    /* Brought to front */
    pointer-events: none;
    /* Click-through */
}

#grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 10;
    /* Brought to front */
    pointer-events: none;
    /* Click-through */
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(108, 92, 231, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 206, 201, 0.06) 0%, transparent 40%);
}

.hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    /* Reduced from 24px */
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #1e293b;
    margin-bottom: 8px;
    /* Reduced to minimum */
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
}

.hero-visuals {
    flex: 1.2;
    display: flex;
    justify-content: center;
    position: relative;
}

.showcase-group {
    display: flex;
    gap: 30px;
    perspective: 1200px;
}

.showcase-item {
    background: white;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 280px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.showcase-item:hover {
    transform: translateY(-20px) rotateX(4deg) rotateY(-4deg);
    box-shadow: 0 40px 80px -15px rgba(108, 92, 231, 0.18);
    border-color: rgba(108, 92, 231, 0.2);
}

.diagram-preview {
    margin-bottom: 20px;
}

.gantt-preview {
    margin-top: -40px;
    /* Moved up as requested */
}

.showcase-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.image-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1200px) {
    .welcome-hero {
        padding: 60px 30px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .showcase-group {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 800px) {
    .showcase-group {
        flex-direction: column;
        align-items: center;
    }

    .diagram-preview,
    .gantt-preview {
        margin: 0;
        width: 100%;
        max-width: 450px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(100px, auto);
    row-gap: 80px;
    /* Reduced from 120px */
    column-gap: 0;
    padding: 0px 60px 400px 60px;
    /* Removed top padding */
    position: relative;
    overflow-y: auto;
    width: 100%;
    /* Background removed from here to allow canvas to show through */
    background: transparent;
    scroll-behavior: smooth;
    z-index: 2;
    /* Above canvas */
}

/* New wrapper styling to hold canvas and grid */
.projects-grid-wrapper {
    background: radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 190, 185, 0.02) 0%, transparent 40%);
}

@media (max-width: 1400px) {
    .projects-grid-wrapper {
        flex: 1;
        /* Take remaining space in flex container */
        align-items: start;
        background: radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.02) 0%, transparent 40%),
            radial-gradient(circle at 90% 80%, rgba(0, 190, 185, 0.02) 0%, transparent 40%);
        scroll-behavior: smooth;
    }
}

@media (max-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    /* Sensible minimum */
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #00cec9);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(108, 92, 231, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 8px 0 4px 0;
    color: #1e293b;
}

.project-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
}

.project-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

.btn-add-project-card {
    border: 2px dashed #cbd5e1;
    background: rgba(248, 250, 252, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #64748b;
    font-weight: 600;
    min-height: 200px;
}

.btn-add-project-card:hover {
    background: #fff;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.add-icon-large {
    font-size: 2.5rem;
    color: #cbd5e1;
    transition: color 0.3s;
}

.btn-add-project-card:hover .add-icon-large {
    color: var(--accent-color);
}

/* Connection Points (Dots) */
.connect-point {
    fill: #eee;
    stroke: var(--accent-color);
    stroke-width: 2px;
    opacity: 0;
    /* Hidden by default, shown on hover */
    transition: opacity 0.2s;
    cursor: crosshair;
}

.node-group:hover .connect-point {
    opacity: 1;
}

/* Resize Handles */
.resize-handle {
    fill: var(--accent-color);
    stroke: #fff;
    stroke-width: 1px;
    opacity: 0;
    cursor: nwse-resize;
    /* Bottom-right cursor */
}

.node-group:hover .resize-handle {
    opacity: 1;
}

/* Node Styling */
.node-box {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    fill-opacity: 0.1;
    /* High Transparency */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    /* Enhanced glass effect */
}

.node-group:hover .node-box {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.node-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.node-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.divider {
    stroke-dasharray: 2, 2;
    stroke-opacity: 0.3;
}

/* Selected State */
.node-group.selected .node-box {
    stroke: var(--accent-color) !important;
    stroke-width: 1px !important;
    filter: drop-shadow(0 15px 30px rgba(108, 92, 231, 0.2)) !important;
}

.link.selected {
    stroke: #ff7675;
    stroke-width: 3px;
    filter: drop-shadow(0 0 5px #ff7675);
}

/* Editing Inputs */
.edit-input {
    position: absolute;
    background: #2d3436;
    color: white;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 4px;
    font-size: 12px;
    font-family: 'Pretendard', sans-serif;
    z-index: 1000;
    outline: none;
}

/* Controls (Add/Delete Items) */
.item-control {
    fill: #777;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, fill 0.2s;
}

.node-group:hover .item-control {
    opacity: 0.6;
}

.item-control:hover {
    opacity: 1;
    fill: #fff;
}

.btn-delete-node,
.btn-add-item {
    cursor: pointer;
}

/* Node/Field Icon Actions */
.node-header-actions,
.node-left-actions,
.field-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.node-group:hover .node-header-actions,
.node-group:hover .node-left-actions,
.field-group:hover .field-actions {
    opacity: 1;
}

.action-btn {
    cursor: pointer;
}

.action-btn circle {
    fill: #f1f2f6;
    stroke: #dcdde1;
    stroke-width: 1;
    transition: all 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.action-btn:hover circle {
    fill: var(--accent-color);
    stroke: #fff;
    filter: drop-shadow(0 0 5px rgba(108, 92, 231, 0.5));
}

.action-btn.delete:hover circle {
    fill: #ff5252;
    stroke: #fff;
}

.action-btn.clone:hover circle {
    fill: #2ecc71;
    stroke: #fff;
}

.action-icon {
    font-size: 13px;
    pointer-events: none;
    /* Let the parent g handle clicks */
}

/* Context Menu / Floating Toolbar (optional visual only for now) */
/* SVG foreignObject may be used for inputs */


.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Updated Top Bar for One-Line Layout */
.toolbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.project-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.project-actions {
    display: flex;
    gap: 5px;
}

.btn-icon-small {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 1px solid #dcdde1 !important;
    background: #f1f2f6 !important;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-icon-small:hover {
    background: var(--accent-color) !important;
    border-color: #fff !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.3);
}

.btn-danger-icon:hover {
    background: #ff5252 !important;
    border-color: #fff !important;
}

.btn-add-project {
    margin-left: 5px;
}

#project-dropdown {
    background: transparent;
    border: none;
    color: #2f3640;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

#project-dropdown option {
    background: #ffffff;
    color: #2f3640;
}

.btn-icon-small {
    background: var(--accent-color);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.divider-v {
    width: 1px;
    height: 20px;
    background: #dcdde1;
}

.help-text {
    color: #888;
    font-size: 12px;
}

/* Neutralized Link Styling */
.link {
    stroke: rgba(0, 0, 0, 0.15);
    stroke-width: 1.5px;
    fill: none;
    transition: stroke 0.2s, stroke-width 0.2s;
}

.link:hover {
    stroke: var(--accent-color);
    stroke-width: 2px;
}

.link.selected {
    stroke: var(--accent-color);
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 5px rgba(108, 92, 231, 0.3));
}

.link-hitbox {
    stroke: transparent;
    stroke-width: 15px;
    fill: none;
    cursor: pointer;
}

.link-delete-btn {
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.link-group:hover .link-delete-btn {
    opacity: 1;
}

.link-delete-btn circle {
    fill: #f1f2f6;
    stroke: #dcdde1;
    stroke-width: 1;
}

.link-delete-btn:hover circle {
    fill: #ff5252;
    stroke: #fff;
}

.link-delete-btn text {
    fill: #485e6a;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

.link-delete-btn:hover text {
    fill: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.modal h3 {
    margin-top: 0;
    color: #1e272e;
    font-size: 1.2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #485e6a;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dcdde1;
    border-radius: 4px;
    color: #2f3640;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.backup-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.backup-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-backup-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hidden-input {
    display: none;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.modal-actions button.primary {
    background: var(--accent-color);
    color: #fff;
}

.modal-actions button:not(.primary) {
    background: #444;
    color: #fff;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    min-width: 180px;
    z-index: 9999;
}

.menu-header {
    padding: 8px 15px;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.menu-item {
    padding: 8px 15px;
    color: #444;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-item:hover {
    background: #f0f0ff;
    color: var(--accent-color);
}

.menu-item.disabled {
    color: #555;
    pointer-events: none;
    font-weight: bold;
}

.menu-separator {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

/* Gantt Styles */
#gantt-chart {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.gantt-bar {
    fill: var(--accent-color);
    -webkit-rx: 4;
    rx: 4;
}

.gantt-text {
    fill: white;
    font-size: 12px;
}

.axis-text {
    fill: #777;
    font-size: 10px;
}

/* Premium Modal Styling */
.premium-modal {
    background: #ffffff;
    border: 1px solid var(--node-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    width: 450px;
    padding: 0;
    overflow: hidden;
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: #fcfcfc;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e272e;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

.field-list {
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.field-item-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.field-item-row textarea {
    flex: 1;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dcdde1;
    border-radius: 4px;
    color: #2f3640;
    font-size: 13px;
    min-height: 40px;
    font-family: inherit;
    resize: vertical;
}

.field-item-row textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-remove-field {
    background: #ffeaea;
    color: #ff5252;
    border: none;
    width: 30px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-remove-field:hover {
    background: rgba(255, 82, 82, 0.4);
}

.btn-add-field {
    width: 100%;
    padding: 8px;
    background: #ffffff;
    border: 1px dashed #dcdde1;
    color: #7f8fa6;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-field:hover {
    background: #f8f9fa;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.modal-actions {
    padding: 15px 20px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
}

.btn-primary,
.btn-secondary {
    border-radius: 2px !important;
    /* Angular */
    font-weight: 600;
    padding: 10px 20px;
}

/* Angular UI adjustments */
.node-box {
    -webkit-rx: 2px !important;
    rx: 2px !important;
}

/* More angular nodes */
.view-controls button {
    border-radius: 4px !important;
}

.project-selector {
    border-radius: 4px !important;
}

.btn-icon-small {
    border-radius: 2px !important;
}

/* ============================================
   Gantt Chart Styles
   ============================================ */
:root {
    --gantt-sidebar-width: 380px;
    --gantt-row-height: 44px;
    --gantt-header-height: 72px;
    --gantt-border: #e6e3df;
    --gantt-bg: #ffffff;
    --gantt-bg-alt: #f7f6f3;
}

.gantt-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-color);
}

.gantt-timeline-toolbar {
    position: sticky;
    top: 0;
    padding: 10px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    z-index: 100;
    /* Above timeline grid */
    min-height: 52px;
}

.toolbar-spacer {
    flex: 1;
}

.gantt-pill-tabs {
    display: flex;
    background: #cbd5e1;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.pill-tab {
    padding: 8px 20px;
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pill-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1e272e;
}

.pill-tab:active {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

.pill-tab.active {
    background: #fff;
    color: var(--accent-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-primary-small {
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.btn-primary-small:hover {
    background: #5b4cc4;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(108, 92, 231, 0.3);
}

.btn-primary-small:active {
    transform: translateY(0);
}

.btn-today {
    padding: 4px 12px;
    border: 1px solid var(--node-border);
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.toolbar-divider {
    width: 1px;
    height: 16px;
    background: #cbd5e1;
    margin: 0 8px;
}

.gantt-zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.gantt-zoom-controls .btn-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: #475569;
}

.gantt-zoom-controls .btn-icon:hover {
    background: #e2e8f0;
}

.gantt-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.gantt-sidebar {
    width: var(--gantt-sidebar-width);
    flex-shrink: 0;
    border-right: 1px solid var(--node-border);
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 10;
}

.gantt-sidebar-header {
    height: var(--gantt-header-height);
    display: grid;
    grid-template-columns: 1fr 105px 105px;
    align-items: center;
    padding: 0 15px;
    background: #f7f6f3;
    border-bottom: 1px solid var(--node-border);
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.gantt-timeline-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    overflow-y: hidden;
}

.gantt-timeline-header {
    height: var(--gantt-header-height);
    background: #f7f6f3;
    border-bottom: 1px solid var(--node-border);
    position: relative;
    min-width: 100%;
}

.gantt-timeline-grid-wrap {
    flex: 1;
    position: relative;
    overflow-y: auto;
    min-width: 100%;
}

.gantt-timeline-grid {
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

.gantt-sidebar-rows {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    margin: 0;
    padding: 0;
}

.gantt-row {
    height: var(--gantt-row-height) !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
}

.gantt-sidebar-row {
    height: var(--gantt-row-height) !important;
    box-sizing: border-box !important;
    display: grid;
    grid-template-columns: 1fr 105px 105px;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #f1f1ee;
    font-size: 12px;
    background: #fff;
}

.gantt-grid-row {
    height: var(--gantt-row-height) !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid #f1f1ee;
    position: relative;
}

.gantt-project-header {
    background: #f8f9fa !important;
    font-weight: 700;
    padding: 0 15px;
    color: #1e272e;
    border-bottom: 1px solid #e5e7eb !important;
}

.gantt-bar {
    position: absolute;
    top: 6px;
    bottom: 6px;
    border-radius: 4px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #fff;
    font-size: 10px;
    cursor: grab;
    z-index: 5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-day-header {
    position: absolute;
    top: 36px;
    /* Below month row */
    bottom: 0;
    border-right: 1px solid #f1f1ee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #444;
    font-weight: 500;
}

.gantt-month-header {
    position: absolute;
    top: 0;
    height: 36px;
    border-right: 1px solid #f1f1ee;
    border-bottom: 1px solid #f1f1ee;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1e272e;
    background: #f8f9fa;
}

.gantt-day-header.weekend-sat {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.03);
}

.gantt-day-header.weekend-sun {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

.gantt-today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    border-left: 2px dashed #ef4444;
    z-index: 20;
    pointer-events: none;
}

.gantt-connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gantt-cell-task {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
    display: flex;
    align-items: center;
}

.gantt-title-input,
.gantt-group-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 11px;
    font-family: inherit;
    color: inherit;
    font-weight: inherit;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: text;
}

.gantt-group-input {
    font-size: 13px;
    font-weight: 700;
    color: #1e272e;
}

.gantt-title-input:hover,
.gantt-group-input:hover {
    background: #f0f1f4;
    border-color: #dcdde1;
}

.gantt-title-input:focus,
.gantt-group-input:focus {
    background: #fff;
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
    color: #1e272e;
}

.gantt-cell-priority,
.gantt-cell-status {
    text-align: center;
    font-size: 11px;
    color: #6b7280;
}

.gantt-date-input {
    width: 95px;
    padding: 4px 2px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 11px;
    font-family: inherit;
    color: #444;
}

.gantt-date-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.gantt-header-today-arrow {
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ef4444;
    z-index: 25;
    transform: translateX(-50%);
}

.gantt-day-header.today {
    background-color: #fff9c4 !important;
    color: #f57c00 !important;
    border-bottom: 2px solid #f57c00 !important;
}

.gantt-project-header {
    height: var(--gantt-row-height);
    background: #fcfaf8;
    color: #4b5563;
    font-weight: 700;
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

.connector-line {
    stroke: #94a3b8;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s;
    opacity: 0.7;
    pointer-events: stroke;
}

.connector-line:hover {
    stroke: var(--accent-color);
    stroke-width: 3;
    opacity: 1;
}

.gantt-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}



.gantt-bar {
    pointer-events: auto;
}

/* Sidebar Drag & Drop Feedback */
.gantt-sidebar-row.dragging {
    opacity: 0.5;
    background: #f1f5f9;
}

.gantt-sidebar-row.drag-over {
    border-top: 2px solid var(--accent-color);
}


/* Gantt Link Handle */
.gantt-link-handle {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: crosshair;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.2s;
}

.gantt-bar:hover .gantt-link-handle {
    opacity: 1;
}

.gantt-temp-link {
    stroke: var(--accent-color);
    stroke-width: 2;
    fill: none;
    pointer-events: none;
}


/* --- Premium Staggered Dashboard Redesign --- */
.projects-view {
    background: #fdfdfd;
    background-image:
        linear-gradient(to bottom, #f1f5f9 1px, transparent 1px),
        linear-gradient(to right, #f1f5f9 1px, transparent 1px);
    background-size: 100% 60px, 40px 100%;
}

/* Shelf Aesthetic Background - Moved to consolidated projects-grid above */

/* The 'Shelves' */
.projects-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, transparent 599px, #e2e8f0 600px, transparent 601px);
    background-size: 100% 600px;
    pointer-events: none;
    z-index: 1;
}

.project-card {
    grid-column: span 1;
    margin: 20px;
    z-index: 2;
    min-height: 380px;
    border: 1px solid #eef2f6;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 4px;
    overflow: visible;
}

/* Pattern 1: Standard High */
.project-card.pattern-1 {
    margin-top: 0px;
}

/* Pattern 2: Staggered Down */
.project-card.pattern-2 {
    margin-top: 40px;
}

/* Pattern 3: Half Step */
.project-card.pattern-3 {
    margin-top: 20px;
}

/* Pattern 4: Deep Stagger */
.project-card.pattern-4 {
    margin-top: 60px;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
    z-index: 10;
}

.project-card-number {
    position: absolute;
    top: -40px;
    left: 10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(108, 92, 231, 0.05);
    line-height: 1;
    pointer-events: none;
    z-index: -1;
    transition: all 0.4s;
}

.project-card:hover .project-card-number {
    color: rgba(108, 92, 231, 0.12);
    transform: translateX(-10px);
}

.project-card-category {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    background: none;
    padding: 0;
    color: #94a3b8;
    margin-bottom: 20px;
    display: block;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: #334155;
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 30px;
    overflow: visible;
    height: auto;
    flex: 1;
}

.project-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    font-weight: 500;
    color: #64748b;
}

.project-card .card-actions {
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .card-actions {
    opacity: 1;
}


/* --- Minimalist Monochrome Search --- */
.projects-search-container {
    padding: 20px 0 10px 0;
    display: flex;
    justify-content: center;
    z-index: 100;
    position: relative;
}

#projects-search-input {
    width: 60%;
    max-width: 800px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px 0;
    font-size: 1.5rem;
    font-weight: 200;
    color: #334155;
    text-align: center;
    letter-spacing: -0.02em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
}

#projects-search-input::placeholder {
    color: #cbd5e1;
    font-weight: 200;
    opacity: 0.5;
}

#projects-search-input:focus {
    border-bottom-color: #334155;
    width: 65%;
    letter-spacing: 0.05em;
}

/* Animation for empty state */
.projects-grid:empty::before {
    content: 'No projects found.';
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 300;
    letter-spacing: 0.1em;
}


/* --- Premium Header Icon Redesign --- */
.btn-icon-premium {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.btn-icon-premium .icon-svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glossy White/Glass Hover */
.btn-icon-premium:hover {
    background: #ffffff;
    color: var(--accent-color);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

.btn-icon-premium:hover .icon-svg {
    transform: scale(1.1);
}

.btn-icon-premium:active {
    transform: translateY(0) scale(0.95);
}

/* Tooltip alignment improvement */
.btn-icon-premium[title]::after {
    transition: all 0.2s;
}


/* --- Legal & Security UI --- */
.legal-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.legal-links a {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--accent-color);
}

.pin-modal {
    max-width: 400px;
    padding: 40px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pin-header h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #1e293b;
}

.pin-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 30px;
}

.pin-input-container input {
    width: 100%;
    max-width: 200px;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.5em;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    outline: none;
    transition: border-color 0.2s;
}

.pin-input-container input:focus {
    border-color: var(--accent-color);
}

.pin-footer {
    margin-top: 30px;
}

.caution-text {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card.locked:hover::after {
    opacity: 0.8;
}

.hidden-nav {
    display: none !important;
}

/* Gantt Link Delete Button */
.gantt-link-group {
    pointer-events: auto;
    /* Required for hover */
}

.gantt-link-delete-btn {
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    pointer-events: auto;
}

.gantt-link-group:hover .gantt-link-delete-btn {
    opacity: 1;
}

.gantt-link-delete-btn circle {
    fill: #ff4757;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.gantt-link-delete-btn text {
    fill: white;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Admin Dashboard Styles */
.admin-stats-card {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    flex: 1;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.admin-action-section {
    background: rgba(239, 68, 68, 0.03);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.admin-action-section h4 {
    margin: 0 0 10px 0;
    color: #ef4444;
}

.section-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
}

.admin-btn-group {
    display: flex;
    gap: 10px;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

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

.admin-table-wrapper {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: #f1f5f9;
    padding: 10px;
    text-align: left;
    position: sticky;
    top: 0;
}

.admin-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tr:hover {
    background: #f8fafc;
}

.btn-sm-danger {
    padding: 4px 8px;
    font-size: 0.75rem;
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 4px;
    cursor: pointer;
}

.btn-sm-danger:hover {
    background: #fecaca;
}