/* --- Reset & Base Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-app: #080a0f;
    --bg-sidebar: #040609;
    --bg-card: rgba(15, 22, 36, 0.7);
    --bg-card-hover: rgba(25, 35, 56, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    
    --success: #10b981; /* Esmeralda */
    --warning: #f59e0b; /* Ambar */
    --error: #ef4444; /* Rojo */
    
    --score-hot: #f43f5e; /* Rose */
    --score-warm: #f97316; /* Orange */
    --score-watch: #eab308; /* Yellow */
    --score-low: #6b7280;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --sidebar-width: 260px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Structure --- */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* --- Sidebar Styles --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.logo-area {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-menu {
    flex: 1;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: white;
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 8px;
}

.user-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.user-profile .info {
    display: flex;
    flex-direction: column;
}

.user-profile .name {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-profile .role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- Main Content Area --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
}

.app-header {
    height: var(--header-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(8, 10, 15, 0.5);
    backdrop-filter: blur(12px);
    z-index: 5;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-title .subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* --- Glassmorphism Card Style --- */
.glass {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(16px);
}

/* --- Tab Panels --- */
.tab-panel {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
}

/* --- Metric Cards --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.metric-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.metric-card .icon-box.red { background-color: rgba(244, 63, 94, 0.15); color: var(--score-hot); }
.metric-card .icon-box.purple { background-color: rgba(168, 85, 247, 0.15); color: #a855f7; }
.metric-card .icon-box.blue { background-color: rgba(99, 102, 241, 0.15); color: var(--primary); }
.metric-card .icon-box.green { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }

.metric-card .data h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-card .data .value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2px 0;
}

.metric-card .data .delta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- Dashboard Layout --- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    min-height: 520px;
}

.card-header {
    padding: 16px 20px 0 20px;
}

.card-header.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h2 i {
    color: var(--primary);
}

.card-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.map-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.feed-container {
    display: flex;
    flex-direction: column;
    padding: 16px;
    height: 100%;
}

.feed-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 480px;
}

/* --- Opportunity Item Feed Card --- */
.opp-feed-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.opp-feed-card:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.opp-feed-card .details {
    flex: 1;
    padding-right: 15px;
}

.opp-feed-card .title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.opp-feed-card .meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
}

.opp-feed-card .meta span i {
    margin-right: 3px;
}

.score-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.score-badge.hot { background-color: rgba(244, 63, 94, 0.15); color: var(--score-hot); border: 1px solid var(--score-hot); }
.score-badge.warm { background-color: rgba(249, 115, 22, 0.15); color: var(--score-warm); border: 1px solid var(--score-warm); }
.score-badge.watch { background-color: rgba(234, 179, 8, 0.15); color: var(--score-watch); border: 1px solid var(--score-watch); }
.score-badge.low { background-color: rgba(148, 163, 184, 0.15); color: var(--score-low); border: 1px solid var(--score-low); }

/* --- Kanban Board --- */
.kanban-board {
    display: flex;
    gap: 16px;
    height: calc(100vh - var(--header-height) - 50px);
    overflow-x: auto;
    padding-bottom: 10px;
}

.kanban-column {
    min-width: 250px;
    width: 250px;
    background-color: rgba(10, 15, 26, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.column-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.column-header .count-badge {
    background-color: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.kanban-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: grab;
    transition: var(--transition);
}

.kanban-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(25, 35, 56, 0.6);
    transform: translateY(-1px);
}

.kanban-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.kanban-card.score-hot-top { border-top: 3px solid var(--score-hot); }
.kanban-card.score-warm-top { border-top: 3px solid var(--score-warm); }
.kanban-card.score-watch-top { border-top: 3px solid var(--score-watch); }
.kanban-card.score-low-top { border-top: 3px solid var(--score-low); }

.kanban-card .card-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 6px;
}

.kanban-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.kanban-card .card-tag {
    background-color: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.kanban-card .card-score-mini {
    font-weight: 700;
}

.kanban-card .card-score-mini.hot { color: var(--score-hot); }
.kanban-card .card-score-mini.warm { color: var(--score-warm); }
.kanban-card .card-score-mini.watch { color: var(--score-watch); }

/* --- Opportunities Grid Tab --- */
.filter-bar {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select, .filter-group input {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

select option {
    background-color: #0d0f14;
    color: white;
}

.filter-group select:focus, .filter-group input:focus {
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.filter-group.search {
    flex: 1;
    min-width: 250px;
    position: relative;
    justify-content: flex-end;
}

.filter-group.search input {
    padding-left: 36px;
    width: 100%;
}

.filter-group.search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.opportunity-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    transition: var(--transition);
}

.opportunity-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

.opportunity-card .card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.opportunity-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

.opportunity-card .card-description {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

.opportunity-card .card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.opportunity-card .card-foot span i {
    margin-right: 4px;
}

/* --- Configuration Tab --- */
.config-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr;
    gap: 24px;
}

.config-card {
    padding: 20px;
}

.table-container {
    margin-top: 15px;
    overflow-x: auto;
}

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

.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    color: var(--text-secondary);
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.01);
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Switch styling */
.switch-container {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 20px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: var(--success);
}

input:checked + .slider-toggle:before {
    transform: translateX(16px);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--error);
}

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

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.85rem;
}

.form-row label {
    width: 160px;
    color: var(--text-secondary);
}

.form-row input[type="range"] {
    flex: 1;
    accent-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    outline: none;
}

.form-row .range-val {
    width: 45px;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

/* --- Agent Console Tab --- */
.console-layout {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height) - 70px);
    overflow: hidden;
}

.console-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    align-self: center;
}

.status-indicator.idle { background-color: var(--text-muted); box-shadow: 0 0 8px rgba(107, 114, 128, 0.5); }
.status-indicator.active { 
    background-color: var(--success); 
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; }
}

.terminal-body {
    flex: 1;
    background-color: #030406;
    color: #4ade80; /* Monospace green */
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
    padding: 20px;
    overflow-y: auto;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 6px;
    border-left: 2px solid transparent;
    padding-left: 8px;
}

.terminal-line.system { color: #94a3b8; border-color: #475569; }
.terminal-line.info { color: #4ade80; border-color: #15803d; }
.terminal-line.warning { color: #facc15; border-color: #a16207; }
.terminal-line.error { color: #f87171; border-color: #b91c1c; }

/* --- Drawer Styling --- */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    z-index: 100;
}

.drawer.open {
    display: flex;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 520px;
    height: 100%;
    background-color: #0b0d13;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.btn-close:hover {
    color: white;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.drawer-stats .badge-score {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    background-color: var(--primary-light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.opp-meta-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.8rem;
}

.opp-meta-list div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.opp-meta-list div i {
    color: var(--primary);
}

.drawer-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.drawer-section p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

.source-link:hover {
    color: #818cf8;
}

.contact-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card .avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-card .contact-details .name {
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-card .contact-details .role {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.contact-links {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 4px;
}

.contact-links a {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-links a:hover {
    color: white;
}

.message-editor {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    resize: vertical;
    transition: var(--transition);
}

.message-editor:focus {
    border-color: var(--primary);
}

.drawer-section .notice {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
    margin-bottom: 8px;
}

/* --- Modal Styles --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    z-index: 100;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 480px;
    padding: 24px;
    border: 1px solid var(--border-color);
    animation: scaleUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleUp {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h2 i {
    color: var(--primary);
}

.modal-body {
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input, .form-group select {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

.flex-group {
    display: flex;
    gap: 15px;
}

.form-group-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

/* Custom styles for dark tile adjustments in Leaflet */
.leaflet-container {
    background: #0f172a !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #0b0d13 !important;
    color: #f3f4f6 !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

.leaflet-popup-content {
    font-family: var(--font-sans) !important;
    font-size: 0.8rem;
}

.leaflet-popup-content h4 {
    margin-bottom: 4px;
    font-weight: 600;
}
