@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;700&display=swap');

:root {
    --primary: #009999;
    --primary-hover: #008080;
    --secondary: #d4cd00;
    --background: #0f2323;
    --surface: #1a3838;
    --text: #ffffff;
    --text-muted: #a0aec0;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    background-image: radial-gradient(circle at top right, rgba(0, 153, 153, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(212, 205, 0, 0.05), transparent 40%);
}

.container {
    max-width: 1000px;
    padding-top: 2rem;
}

h1 {
    font-weight: 800;
    margin-bottom: 2rem !important;
}

.alert-primary {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.table {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    overflow: hidden;
    color: var(--text);
}

.table-bordered td,
.table-bordered th {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.table thead th {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    border-radius: 1rem;
    padding: 0.75rem 2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 153, 153, 0.3);
}

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

.btn-success {
    background-color: var(--secondary);
    border: none;
    border-radius: 1rem;
    padding: 0.75rem 2rem;
    font-weight: 700;
    color: #000;
}

.btn-success:hover {
    background-color: #f7ef00;
    color: #000;
}

input,
select,
textarea,
.form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    color: white !important;
    padding: 0.75rem 1.25rem !important;
    height: auto !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 153, 153, 0.1) !important;
    color: white !important;
    outline: none !important;
}

/* Fix for number inputs arrows in some browsers */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1);
}

/* Fix for color input appearance */
input[type="color"] {
    padding: 0.2rem !important;
    cursor: pointer;
    min-height: 50px;
}

#mapdiv {
    background: var(--surface);
    border-radius: 2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

#resource-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 900;
    color: var(--text);
    background-color: var(--primary);
    padding: 30px 50px;
    border-radius: 2rem;
    box-shadow: 0 0 50px var(--primary);
    z-index: 2000;
    animation: flash 1s ease-in-out infinite alternate;
}

@keyframes flash {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.modal-content {
    background: var(--surface);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    color: white;
}