/* Romania Interactive Map - Main Styles */
.rm-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.rm-map-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    max-height: 80vh;
}

.rm-county {
    fill: var(--rm-fill, #3498db);
    stroke: var(--rm-border, #ffffff);
    stroke-width: var(--rm-border-width, 2px);
    cursor: pointer;
    transition: fill 0.3s ease, transform 0.2s ease, filter 0.2s ease;
    transform-origin: center;
    vector-effect: non-scaling-stroke;
}

.rm-county:hover {
    fill: var(--rm-hover, #2980b9);
    filter: brightness(1.1);
}

.rm-county.has-link {
    cursor: pointer;
}

.rm-county.no-link {
    cursor: default;
}

/* Tooltip */
.rm-tooltip {
    position: absolute;
    background: var(--rm-tooltip-bg, #2c3e50);
    color: var(--rm-tooltip-text, #ffffff);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rm-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--rm-tooltip-bg, #2c3e50);
}

.rm-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Labels */
.rm-label {
    font-size: 11px;
    font-weight: 600;
    fill: var(--rm-text, #ffffff);
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: central;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .rm-label {
        font-size: 8px;
    }
    .rm-county {
        stroke-width: 1.5px;
    }
}

@media (max-width: 480px) {
    .rm-label {
        font-size: 6px;
    }
    .rm-county {
        stroke-width: 1px;
    }
    .rm-tooltip {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Admin */
.rm-admin-wrap {
    max-width: 1200px;
    padding: 20px;
}

.rm-admin-wrap h1 {
    margin-bottom: 20px;
}

.rm-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.rm-admin-table th,
.rm-admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #c3c4c7;
}

.rm-admin-table th {
    background: #f0f0f1;
    font-weight: 600;
}

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

.rm-color-picker {
    width: 60px;
    height: 30px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    cursor: pointer;
}

.rm-input-url {
    width: 100%;
    max-width: 300px;
}

.rm-instance-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.rm-instance-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.rm-shortcode-box {
    background: #f0f0f1;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    cursor: pointer;
    border: 1px dashed #8c8f94;
    display: inline-block;
    user-select: all;
}

.rm-shortcode-box:hover {
    background: #e8e8e9;
    border-style: solid;
}

.rm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #2271b1;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.15s ease;
}

.rm-btn:hover {
    background: #135e96;
    border-color: #135e96;
}

.rm-btn-secondary {
    background: #fff;
    color: #2271b1;
}

.rm-btn-secondary:hover {
    background: #f0f6fc;
}

.rm-btn-danger {
    background: #d63638;
    border-color: #d63638;
}

.rm-btn-danger:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

.rm-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.rm-form-group {
    flex: 1;
    min-width: 200px;
}

.rm-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.rm-form-group input[type="text"],
.rm-form-group input[type="url"],
.rm-form-group input[type="number"],
.rm-form-group select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.rm-tabs {
    display: flex;
    border-bottom: 1px solid #c3c4c7;
    margin-bottom: 20px;
}

.rm-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    color: #646970;
    transition: all 0.15s;
}

.rm-tab:hover {
    color: #2271b1;
}

.rm-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

.rm-tab-panel {
    display: none;
}

.rm-tab-panel.active {
    display: block;
}

.rm-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
}

.rm-notice-success {
    border-left-color: #00a32a;
    background: #edfaef;
}

.rm-notice-error {
    border-left-color: #d63638;
    background: #fcf0f1;
}
