:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --bg: #f8fafc;
    --text: #1e293b;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l1.43 1.43-28.56 28.56-1.43-1.428L54.628 0zm-30 0l1.43 1.43-13.56 13.56-1.43-1.428L24.628 0zm30 30l1.43 1.43-13.56 13.56-1.43-1.428L54.628 30zM0 30l1.43 1.43-1.43 1.43V30zm0-30l1.43 1.43L0 2.857V0zm30 0l1.43 1.43-28.56 28.56-1.43-1.428L30 0z' fill='%23cbd5e1' fill-opacity='0.25' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text);
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.form-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom Marker Styling */
.custom-div-icon {
    background: none;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.marker-pin i {
    transform: rotate(45deg);
    color: white;
    font-size: 14px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
}

/* Global Mobile Responsiveness for Admin Panel */
@media (max-width: 992px) {

    /* Split containers (Add point, Layers, etc) */
    .split-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column-reverse;
    }

    .split-container .form-panel {
        height: auto !important;
        border-right: none !important;
        border-top: 1px solid #e2e8f0;
        overflow-y: visible !important;
    }

    .split-container #preview-map,
    .split-container #layer-map {
        height: 60vh !important;
        min-height: 400px;
    }

    /* Category Grid */
    .category-grid {
        grid-template-columns: 1fr !important;
    }

    /* Bulk Upload */
    .upload-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column-reverse;
    }

    .upload-container #preview-map {
        height: 50vh !important;
        min-height: 400px;
    }

    /* Dashboard grids */
    .stat-grid,
    .target-grid {
        grid-template-columns: 1fr !important;
    }

    /* List Layouts & Headers */
    .header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }

    .search-box {
        flex-direction: column !important;
    }

    .search-box input {
        max-width: 100% !important;
    }

    .flex-container {
        flex-direction: column-reverse !important;
    }

    /* Responsive Data Tables */
    .table-section {
        overflow-x: auto !important;
        width: 100%;
        display: block;
    }
}