.section-header .section-status {
    position: absolute;
    top: 18px;
    left: 24px;
    background: rgba(255,255,255,0.2);
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
}

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

body {
    font-family: 'Cairo', Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 50%, #ffe8d6 100%);
    color: #333;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 700px;
    min-height: 520px;
    margin: 60px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 48px 48px 38px 48px;
}

/* Logo */
.logo {
    width: 160px;
    margin-bottom: 22px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Fixed header for mobile */
@media (max-width: 1000px) {
    .header-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #e0e0e0;
        z-index: 1000;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .header-fixed .logo {
        width: 80px;
        margin-bottom: 0;
    }
    
    .content-with-fixed-header {
        margin-top: 100px;
    }
}

/* Headings */
h1 {
    color: #ff8c00;
    font-size: 2.2rem;
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-align: center;
}
h2 {
    color: #ff8c00;
    font-size: 1.3rem;
    margin-bottom: 18px;
    text-align: right;
}

/* توسيط عناوين الأقسام داخل الهيدر البرتقالي فقط */

/* عناوين أقسام القضايا في الصفحة الرئيسية */
.section-header .section-title {
    color: #ff8c00 !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0 10px;
    text-align: right;
    display: inline-block;
    vertical-align: middle;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(255,140,0,0.08);
}


/* Form */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-weight: 500;
}

input[type="email"], input[type="password"], input[type="text"], select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 9px;
    background: #fafafa;
    font-size: 1rem;
    transition: border 0.2s;
}

input:focus, select:focus {
    border-color: #ff8c00;
    outline: none;
}

input[readonly] {
    background: #f3f3f3;
}

/* Button */
.btn, .details-btn, .search-btn {
    background: #ff8c00 !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 13px 0;
    font-size: 1.08rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(255,140,0,0.20);
    letter-spacing: 1px;
}

.btn:hover, .details-btn:hover, .search-btn:hover {
    background: #ff7700 !important;
}

/* Error Message */
.error-message {
    background: #ffe5e0;
    color: #ff7700;
    border-radius: 7px;
    padding: 9px;
    margin-top: 16px;
    text-align: center;
    font-size: 1rem;
}

/* الصفحة الرئيسية */
.scrollable-box {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.section {
    flex: 1 1 350px;
    background: #fff5f0;
    border-radius: 13px;
    padding: 18px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-width: 280px;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
li {
    background: #fff;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    color: #333;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* أزرار الصفحة الرئيسية */
.buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
    align-items: center;
}
.buttons .btn {
    width: 200px;
    margin: 0;
}

/* التاريخ والوقت */
.date-time {
    margin-top: 8px;
    color: #ff8c00;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

/* تنسيق صفحة الإدخال */
.input-with-select {
    display: flex;
    gap: 8px;
}
.input-with-select select,
.input-with-select input[type="text"] {
    flex: 1;
    min-width: 0;
}

/* توسيع مربع الإدخال */
.section-form {
    margin-bottom: 24px;
    width: 100%;
}
main.container {
    max-width: 900px;
    min-height: 600px;
    padding: 32px 28px 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* البحث */
.search-form {
    width: 100%;
    margin-bottom: 24px;
    justify-content: center;
}
.search-input {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    font-size: 1rem;
    transition: border 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.search-input:focus {
    border-color: #ff8c00;
    outline: none;
}
.search-btn {
    background: #ff8c00 !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    min-width: 90px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(255,140,0,0.20);
    letter-spacing: 1px;
}
.search-btn:hover {
    background: #ff7700 !important;
}

/* Loader Animation */
.loader {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  box-shadow: -20px 0px,20px 0px;
  animation: l18 1s infinite;
}
@keyframes l18{ 
  25%  {box-shadow: -20px -20px, 20px 20px}
  50%  {box-shadow:   0px -20px,  0px 20px}
  75%  {box-shadow:  20px -20px,-20px 20px}
  100% {box-shadow:  20px   0px,-20px  0px}
}

/* Responsive */
@media (max-width: 1000px) {
    main.container {
        max-width: 98vw;
        min-height: 400px;
        padding: 18px 8px;
    }
    .scrollable-box {
        flex-direction: column;
        gap: 18px;
    }
    .section {
        min-width: 100%;
    }
    .btn, .buttons .btn {
        width: 100%;
    }
    .logo {
        width: 90px;
    }
    h1 {
        font-size: 1.5rem;
    }
    
    /* تحسينات صفحة التفاصيل للهاتف المحمول */
    .page-container {
        max-width: 95vw !important;
        margin: 10px auto !important;
        padding: 20px 15px !important;
        border-radius: 15px !important;
    }
    
    .case-info {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .info-item {
        padding: 12px !important;
        margin-bottom: 10px !important;
    }
    
    /* تكبير الخريطة في الهاتف المحمول */
    .map-container {
        height: 350px !important;
        margin: 20px 0 !important;
        border-radius: 12px !important;
    }
    
    #map {
        height: 100% !important;
        min-height: 350px !important;
        border-radius: 12px !important;
    }
    
    /* تحسين عرض الصور */
    .images-section {
        margin: 20px 0 !important;
    }
    
    .images-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    .image-item img {
        max-height: 150px !important;
        border-radius: 8px !important;
    }
    
    /* تحسين الأزرار */
    .action-buttons {
        margin-top: 30px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .action-buttons .btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 1.1rem !important;
    }
    
    /* تحسين النصوص */
    .case-title {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    
    .info-label {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }
    
    .info-value {
        font-size: 1rem !important;
        margin-top: 5px !important;
    }
}
