/* AgentCity Frontend Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    height: 100vh;
    overflow: hidden;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.header {
    height: 50px;
    background: #2d2d2d;
    border-bottom: 2px solid #3d3d3d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

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

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #4a9eff;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #00ff00;
}

.status-dot.disconnected {
    background: #ff4444;
}

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

.header-btn {
    background: none;
    border: 1px solid #4d4d4d;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.header-btn:hover {
    background: #3d3d3d;
    border-color: #4a9eff;
}

/* ============================================================================
   MAIN CONTAINER
   ============================================================================ */

.main-container {
    display: flex;
    height: calc(100vh - 50px);
    position: relative;
    overflow: hidden;
}

/* ============================================================================
   AGENTS SIDEBAR
   ============================================================================ */

.agents-sidebar {
    width: 220px;
    background: #1e1e1e;
    border-right: 1px solid #3d3d3d;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agents-header {
    padding: 15px;
    border-bottom: 1px solid #3d3d3d;
    background: #252525;
}

.agents-header h3 {
    margin: 0;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agents-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* Agent Card */
.agent-card {
    margin-bottom: 8px;
    background: #2d2d2d;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
}

.agent-card.active {
    background: #3d3d3d;
    box-shadow: 0 0 0 2px #4a9eff;
}

/* Agent Header */
.agent-header {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.agent-header:hover {
    background: #353535;
}

.agent-expand-arrow {
    font-size: 10px;
    color: #888;
    transition: transform 0.2s;
    width: 12px;
    text-align: center;
}

.agent-expand-arrow.expanded {
    transform: rotate(90deg);
}

.agent-color-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-count-badge {
    background: #4d4d4d;
    color: #aaa;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.agent-menu-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.agent-menu-btn:hover {
    color: #4a9eff;
}

/* Analytics Dashboard */
.analytics-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.analytics-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.analytics-card {
    background: #2d2d2d;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.analytics-card-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.analytics-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #4a9eff;
}

.analytics-projects-list,
.analytics-agents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.analytics-project-item {
    background: #2d2d2d;
    padding: 12px;
    border-radius: 6px;
}

.analytics-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.analytics-project-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
}

.analytics-project-progress {
    font-size: 13px;
    font-weight: 600;
    color: #00ff88;
}

.analytics-project-stats {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #888;
    margin-top: 8px;
}

.analytics-agent-item {
    background: #2d2d2d;
    padding: 12px;
    border-radius: 6px;
}

.analytics-agent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.analytics-agent-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
}

.analytics-agent-info {
    font-size: 11px;
    color: #888;
    display: flex;
    justify-content: space-between;
}

.analytics-agent-resources {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #3d3d3d;
}

.analytics-resource-info {
    font-size: 10px;
    color: #4a9eff;
    font-weight: 600;
}

.analytics-empty {
    text-align: center;
    padding: 32px;
    color: #666;
    font-size: 13px;
}

/* Resource Bars */
.terminal-resource-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px 6px 28px;
    margin-top: 4px;
}

.resource-bar-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}

.resource-bar-label {
    width: 30px;
    color: #888;
    font-weight: 600;
}

.resource-bar {
    flex: 1;
    height: 4px;
    background: #2d2d2d;
    border-radius: 2px;
    overflow: hidden;
}

.resource-bar.warning {
    background: rgba(255, 68, 68, 0.2);
}

.resource-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #00ff88);
    transition: width 0.3s ease;
}

.resource-bar.warning .resource-bar-fill {
    background: linear-gradient(90deg, #ff4444, #ffaa00);
}

.resource-bar-value {
    width: 45px;
    text-align: right;
    color: #aaa;
    font-size: 9px;
}

/* Terminals Container */
.agent-terminals {
    padding: 4px 8px 8px 8px;
    background: #252525;
    max-height: 300px;
    overflow-y: auto;
}

.agent-terminals.collapsed {
    display: none;
}

/* Terminal Item */
.terminal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    margin: 3px 0;
    background: #1e1e1e;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.terminal-item:hover {
    background: #2a2a2a;
}

.terminal-item.active {
    background: #2a3540;
    border-left-color: #4a9eff;
}

.terminal-state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.terminal-state-dot.green { background: #00ff00; }
.terminal-state-dot.yellow { background: #ffaa00; }
.terminal-state-dot.red { background: #ff4444; }

.terminal-item-name {
    flex: 1;
    font-size: 11px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-state-badge {
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    background: #4d4d4d;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 600;
}

/* New Terminal Button */
.new-terminal-btn-inline {
    width: 100%;
    margin-top: 4px;
    padding: 6px;
    background: #1e1e1e;
    border: 1px dashed #4d4d4d;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.new-terminal-btn-inline:hover {
    background: #2a2a2a;
    border-color: #4a9eff;
    color: #4a9eff;
}

/* Add Agent Button */
.add-agent-btn {
    margin: 8px;
    padding: 10px;
    background: #2d2d2d;
    border: 2px dashed #4d4d4d;
    border-radius: 6px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-agent-btn:hover {
    background: #3d3d3d;
    border-color: #4a9eff;
    color: #4a9eff;
}

/* ============================================================================
   TERMINAL VIEW
   ============================================================================ */

.terminal-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
}

/* Terminal Header with Breadcrumb */
.terminal-header {
    padding: 12px 20px;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-breadcrumb {
    font-size: 13px;
    color: #888;
}

.terminal-breadcrumb .agent-name {
    color: #4a9eff;
    font-weight: 600;
}

.terminal-breadcrumb .separator {
    margin: 0 8px;
    color: #666;
}

.terminal-breadcrumb .terminal-name {
    color: #e0e0e0;
}

.terminal-breadcrumb .project-name {
    color: #00ff88;
    font-weight: 500;
    background: rgba(0, 255, 136, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.terminal-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: 1px solid #4d4d4d;
    color: #888;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #3d3d3d;
    border-color: #ff4444;
    color: #ff4444;
}

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

.terminal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    padding: 10px;
}

.terminal-wrapper.active {
    display: block;
}

.no-terminals {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.no-terminals-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-terminals-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.no-terminals-hint {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.create-first-terminal {
    padding: 12px 24px;
    background: #4a9eff;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.create-first-terminal:hover {
    background: #3a8eef;
}

/* ============================================================================
   RIGHT PANEL
   ============================================================================ */

.right-panel {
    width: 300px;
    background: #2d2d2d;
    border-left: 2px solid #3d3d3d;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 15px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #3d3d3d;
}

.panel-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

/* ============================================================================
   FILE CONTEXT PANEL
   ============================================================================ */

.file-section {
    border-bottom: 1px solid #3d3d3d;
}

.file-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #252525;
    border-bottom: 1px solid #3d3d3d;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.file-section-header:hover {
    background: #2a2a2a;
}

.file-section-toggle {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    transition: all 0.2s;
}

.file-section-toggle:hover {
    color: #4a9eff;
}

.file-section-content {
    max-height: 300px;
    overflow-y: auto;
}

.file-section-content.collapsed {
    max-height: 0;
    overflow: hidden;
}

.file-list-empty {
    padding: 20px 15px;
    text-align: center;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.file-item {
    padding: 10px 15px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    transition: all 0.2s;
}

.file-item:hover {
    background: #2a2a2a;
}

.file-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.file-item-icon {
    font-size: 14px;
}

.file-item-path {
    flex: 1;
    font-size: 12px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.file-item-badge.created {
    background: #51cf66;
    color: #000;
}

.file-item-badge.modified {
    background: #ffd93d;
    color: #000;
}

.file-item-badge.deleted {
    background: #ff6b6b;
    color: #fff;
}

.file-item-meta {
    font-size: 11px;
    color: #888;
    padding-left: 22px;
}

.file-item-locked-by {
    margin-top: 4px;
    font-size: 11px;
    color: #4a9eff;
    padding-left: 22px;
}

/* ============================================================================
   SCROLLBAR
   ============================================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #4d4d4d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5d5d5d;
}

/* ============================================================================
   MODAL
   ============================================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #2d2d2d;
    margin: 10% auto;
    padding: 0;
    border: 2px solid #4a9eff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.modal-header h3 {
    margin: 0;
    color: #4a9eff;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #ff4444;
}

.modal-body {
    padding: 20px;
}

/* ============================================================================
   FORM STYLES
   ============================================================================ */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #e0e0e0;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    background: #1e1e1e;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.form-group select {
    width: 100%;
    padding: 10px;
    background: #1e1e1e;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group select:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

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

.color-picker input[type="color"] {
    width: 60px;
    height: 40px;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    background: #1e1e1e;
    cursor: pointer;
}

.color-picker small {
    flex: 1;
    margin: 0;
}

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

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-primary {
    background: #4a9eff;
    color: white;
}

.btn-primary:hover {
    background: #3a8eef;
}

.btn-secondary {
    background: #3d3d3d;
    color: #e0e0e0;
    border: 1px solid #4d4d4d;
}

.btn-secondary:hover {
    background: #4d4d4d;
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.toast-notification {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #2d2d2d;
    color: #e0e0e0;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid #4a9eff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-out;
    pointer-events: none;
    max-width: 300px;
    word-wrap: break-word;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   CITY VIEW
   ============================================================================ */

.city-view-section {
    height: 60%;
    border-bottom: 1px solid #3d3d3d;
    display: flex;
    flex-direction: column;
}

.city-view-section .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.city-controls {
    display: flex;
    gap: 8px;
}

#game-container {
    flex: 1;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

#game-container canvas {
    display: block;
    margin: 0 auto;
}

.file-context-section {
    height: 40%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-context-section .panel-header {
    padding: 12px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.file-context-section .panel-content {
    flex: 1;
    overflow-y: auto;
}

/* ============================================================================
   LEFT SIDEBAR (Projects + Agents)
   ============================================================================ */

.left-sidebar {
    width: 240px;
    background: #1e1e1e;
    border-right: 1px solid #3d3d3d;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Projects Section */
.projects-section {
    border-bottom: 1px solid #3d3d3d;
    padding: 12px;
}

.projects-section .section-header {
    margin-bottom: 12px;
}

.projects-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.project-card {
    background: #2d2d2d;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.project-card:hover {
    background: #3d3d3d;
    border-color: #4a9eff;
}

.project-card.active {
    border-color: #4a9eff;
    background: #2a3f5f;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.project-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-menu-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    line-height: 1;
}

.project-menu-btn:hover {
    color: #e0e0e0;
}

.project-progress {
    margin-bottom: 6px;
}

.progress-bar {
    height: 4px;
    background: #3d3d3d;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #00ff88);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 11px;
    color: #888;
}

.project-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #888;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.empty-state {
    text-align: center;
    color: #666;
    font-size: 12px;
    padding: 20px;
}

/* Agents Section */
.agents-section {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.agents-section .section-header {
    margin-bottom: 12px;
}

.agents-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
}

.agents-list {
    flex: 1;
    overflow-y: auto;
}

/* Add Button Styles */
.add-btn {
    width: 100%;
    padding: 10px;
    background: #2d2d2d;
    border: 1px dashed #4d4d4d;
    border-radius: 6px;
    color: #4a9eff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: #3d3d3d;
    border-color: #4a9eff;
}

/* Update old agents-sidebar styles */
.agents-sidebar {
    display: none; /* Hidden, replaced by left-sidebar */
}

.add-agent-btn {
    display: none; /* Hidden, replaced by add-btn */
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #2d2d2d;
    border-left: 4px solid #4a9eff;
    border-radius: 6px;
    padding: 12px 16px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
    animation: toast-slide-in 0.3s ease-out;
    pointer-events: all;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.toast-error {
    border-left-color: #ff4444;
}

.toast.toast-success {
    border-left-color: #00ff88;
}

.toast.toast-warning {
    border-left-color: #ffaa00;
}

.toast.toast-info {
    border-left-color: #4a9eff;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #e0e0e0;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.toast-exit {
    animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }
}

/* Confirmation Modal */
#confirm-modal .modal-content {
    text-align: center;
}

#confirm-message {
    margin: 20px 0;
    color: #e0e0e0;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-primary {
    background: #4a9eff;
    color: white;
}

.btn-primary:hover {
    background: #3d8aef;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #3d3d3d;
    color: #e0e0e0;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background: #4a4a4a;
    border-color: #666;
}
