/* Qatar Theme for Traccar */

/* Background */
body {
    background-image: url('https://images.unsplash.com/photo-1590766940554-634a7ed41450?q=80&w=2835&auto=format&fit=crop') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Overlay to darken background for readability */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(138, 21, 56, 0.85); /* Qatar Maroon with opacity */
    z-index: -1;
}

/* Login Card Container - targeting generic MUI classes found in Traccar */
div[class*="MuiPaper-root"] {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid #C5B358 !important; /* Gold Border */
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

/* Buttons */
button[class*="MuiButton-containedPrimary"] {
    background-color: #8A1538 !important; /* Maroon */
    color: #FFFFFF !important;
    font-weight: bold !important;
}

button[class*="MuiButton-containedPrimary"]:hover {
    background-color: #6d102c !important; /* Darker Maroon */
}

/* Text Fields Focus Color */
.Mui-focused .MuiOutlinedInput-notchedOutline {
    border-color: #8A1538 !important;
}

.MuiFormLabel-root.Mui-focused {
    color: #8A1538 !important;
}

/* Links */
a {
    color: #8A1538 !important;
}

/* Loader */
.loader {
    border-right-color: #8A1538 !important;
}
