/* تنسيق موحد لجميع الأقسام مع تحسينات إضافية */

/* أقسام موحدة بتنسيق نظيف */
#section-one,
#section-three,
#section-four,
#section-result,
#section-five {
    border: none;
}

/* أيقونات للأقسام */
#section-one .section-header h2::before {
    content: '📋 ';
}

#section-three .section-header h2::before {
    content: '📁 ';
}

#section-four .section-header h2::before {
    content: '📍 ';
}

#section-result .section-header h2::before {
    content: '🔍 ';
}

#section-five .section-header h2::before {
    content: '⚖️ ';
}
/* جميع التنسيقات الخاصة بصفحة data_entry.html تم نقلها هنا */

.center-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.center-action-btn button {
    min-width: 220px;
    text-align: center;
}

.map-container.shrinked {
    min-height: 120px !important;
    height: 120px !important;
    max-height: 140px !important;
    transition: height 0.4s cubic-bezier(.4,2,.6,1), min-height 0.4s cubic-bezier(.4,2,.6,1);
    overflow: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 50%, #ffe8d6 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,140,0,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,140,0,0.1)"/><circle cx="40" cy="60" r="0.5" fill="rgba(255,140,0,0.08)"/><circle cx="90" cy="30" r="1.5" fill="rgba(255,140,0,0.06)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromBottom {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.main-header {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000;
    animation: slideInFromRight 0.8s ease-out;
}
.main-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}
.main-logo:hover {
    transform: scale(1.05);
}
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 30px;
    min-height: 100vh;
    align-items: start;
}
.sidebar {
    position: sticky;
    top: 120px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInFromRight 1s ease-out;
}
.welcome-section {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 140, 0, 0.1);
}
.user-greeting {
    color: #ff8c00;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}
.action-btn {
    background: linear-gradient(135deg, #ff8c00, #ff7700);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    cursor: pointer;
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}
.back-btn {
    background: linear-gradient(135deg, #ff8c00, #ff8c00);
    margin-bottom: 15px;
}
.back-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}
.main-content {
    animation: slideInFromBottom 1.2s ease-out;
}
.content-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff8c00, #ff7700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.page-subtitle {
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
}
.section-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}
.section-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.section-header {
    background: transparent;
    color: #333;
    padding: 0 0 20px 0;
    margin: 0 0 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 2px solid rgba(255, 140, 0, 0.1);
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ff8c00;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-status {
    position: relative;
    background: rgba(255, 140, 0, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff8c00;
    border: 1px solid rgba(255, 140, 0, 0.2);
    box-shadow: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.section-status.completed {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: rgba(255,255,255,0.4);
}

.section-status.completed::before {
    content: '✓ ';
    font-weight: 900;
}
.section-form {
    padding: 35px 40px 40px 40px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    position: relative;
}

.section-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,140,0,0.3), transparent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.form-row.currency-row {
    display: block !important;
    width: 100%;
    margin-bottom: 30px;
}

.form-row.currency-row .form-group {
    width: 100%;
    margin-bottom: 25px;
    display: block;
}

.form-row.currency-row .input-with-convert {
    width: 100%;
    display: flex;
    position: relative;
}

.form-row.currency-row .input-with-convert input {
    font-size: 1.2rem;
    padding: 16px 55px 16px 20px;
    font-weight: 500;
    width: 100%;
    flex: 1;
    box-sizing: border-box;
}

.form-row.currency-row label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-row::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

.form-row:last-child::after {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* تحسين العناوين الفرعية */
.form-group label {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.05rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.form-group label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #ff8c00;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.form-group:hover label::before {
    background: #ff7700;
    transform: scale(1.2);
}

.form-group:focus-within label {
    color: #ff8c00;
}

.form-group:focus-within label::before {
    background: #ff7700;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255,140,0,0.4);
}

/* تحسين المؤشرات المطلوبة */
.form-group label span[style*="color:red"] {
    color: #e74c3c !important;
    font-weight: 900;
    font-size: 1.2rem;
    margin-left: 3px;
    text-shadow: 0 1px 2px rgba(231,76,60,0.3);
}

/* تحسين التفاعل مع الحقول */
.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: rgba(40, 167, 69, 0.8);
    background: rgba(248, 255, 249, 0.9);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(231, 76, 60, 0.8);
    background: rgba(255, 248, 248, 0.9);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(232, 236, 240, 0.8);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff8c00;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(255,140,0,0.08), 0 4px 20px rgba(255,140,0,0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(255,140,0,0.6);
    box-shadow: 0 4px 15px rgba(255,140,0,0.08);
    background: rgba(255, 255, 255, 0.95);
}
.input-with-select {
    display: flex;
    gap: 10px;
    align-items: center;
}
.input-with-select select {
    min-width: 120px;
}
.input-with-select input {
    flex: 1;
}
.auto-number-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.3);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.auto-number-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.auto-number-btn:hover::before {
    left: 100%;
}

.auto-number-btn:hover {
    transform: translateY(-3px) rotate(180deg);
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.4);
    background: linear-gradient(135deg, #ff7700 0%, #ff8c00 100%);
}

.auto-number-btn:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.input-with-convert {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.input-with-convert input {
    flex: 1;
    padding-left: 55px !important;
    border-radius: 15px;
    border: 2px solid #e8ecf0;
    font-weight: 600;
}

.currency-symbol {
    position: absolute;
    left: 18px;
    font-weight: 800;
    color: #ff8c00;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.section-actions {
    text-align: center;
    margin-top: 40px;
    padding: 25px 0 0 0;
    border-top: 2px solid rgba(248, 249, 250, 0.8);
    position: relative;
}

.section-actions::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff8c00, #ff7700);
    border-radius: 2px;
}

.save-section-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.25);
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 220px;
}

.save-section-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.save-section-btn:hover::before {
    left: 100%;
}

.save-section-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(40, 167, 69, 0.35);
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.save-section-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.save-section-btn:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}
.file-upload-area {
    border: 3px dashed #ff8c00;
    border-radius: 20px;
    padding: 40px 30px;
    background: rgba(255, 248, 240, 0.7);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,140,0,0.05) 0%, transparent 70%);
    transition: opacity 0.4s ease;
    opacity: 0;
}

.file-upload-area:hover {
    background: rgba(255, 232, 214, 0.8);
    border-color: #ff7700;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,140,0,0.15);
}

.file-upload-area:hover::before {
    opacity: 1;
}

.upload-icon {
    font-size: 3.5rem;
    color: #ff8c00;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(255,140,0,0.2));
}

.file-upload-area:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
    color: #ff7700;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.upload-subtext {
    font-size: 1rem;
    color: #8b6914;
    font-weight: 500;
}
.files-list {
    margin-top: 25px;
    text-align: right;
}

.file-item {
    background: rgba(248, 249, 250, 0.8);
    border: 2px solid rgba(232, 236, 240, 0.8);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.file-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #ff8c00, #ff7700);
}

.file-item:hover {
    border-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.1);
    background: rgba(255, 255, 255, 0.9);
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    position: relative;
    padding-left: 25px;
}

.file-name::before {
    content: '📄';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.file-remove {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.file-remove:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}
/* تحسين تنسيق قسم الموقع */
.map-container {
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid #ff8c00;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(255,140,0,0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #ff7700, #ffa500);
    z-index: 1;
}

.location-details-container {
    background: rgba(248, 249, 250, 0.8);
    border: 2px solid rgba(232, 236, 240, 0.8);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.location-details-container:hover {
    border-color: rgba(255,140,0,0.6);
    box-shadow: 0 6px 25px rgba(255,140,0,0.08);
    background: rgba(255, 255, 255, 0.9);
}

.coordinates-container {
    background: rgba(248, 249, 250, 0.8);
    border: 2px solid rgba(232, 236, 240, 0.8);
    border-radius: 20px;
    padding: 25px;
    margin: 25px 0;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.coordinates-container:hover {
    border-color: rgba(255,140,0,0.6);
    box-shadow: 0 6px 25px rgba(255,140,0,0.08);
    background: rgba(255, 255, 255, 0.9);
}

.coordinates-container .form-group input[readonly] {
    background: rgba(233, 236, 239, 0.9) !important;
    color: #495057;
    font-weight: 600;
}

.location-details-container::before {
    content: '📍 بيانات الموقع';
    display: block;
    font-weight: 700;
    color: #ff8c00;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255,140,0,0.2);
    padding-bottom: 10px;
}

.coordinates-container::before {
    content: '🌐 الإحداثيات والوصف';
    display: block;
    font-weight: 700;
    color: #ff8c00;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255,140,0,0.2);
    padding-bottom: 10px;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #ff7700, #ffa500);
    z-index: 1;
}

.location-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.location-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255,140,0,0.25);
    position: relative;
    overflow: hidden;
}

.location-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.location-btn:hover::before {
    left: 100%;
}

.location-btn:hover {
    background: linear-gradient(135deg, #ff7700 0%, #ff8c00 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255,140,0,0.35);
}

.location-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108,117,125,0.25);
}

.location-btn.secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
    box-shadow: 0 6px 25px rgba(108,117,125,0.35);
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    border: 2px solid #e8ecf0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}
.notification.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}
.notification.info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}
/* إشعار مخصص في صفحة إدخال البيانات */
.notifications-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    max-width: 90vw;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.notification-message {
    background: linear-gradient(135deg, #ff8c00, #ff7700);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(255,140,0,0.15);
    padding: 18px 32px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    letter-spacing: 0.5px;
    display: inline-block;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
}
.notification-message.show {
    opacity: 1;
    transform: scale(1);
}
.notification-message.hide {
    opacity: 0;
    transform: scale(0.96);
}

/* Footer Styles - Fixed Bottom Bar */
.data-entry-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 20px 25px;
    box-shadow: none;
    z-index: 999;
    border-top: none;
    backdrop-filter: blur(15px);
}

.footer-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.finish-review-btn {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    font-size: 1.05rem;
    padding: 16px 25px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
}

.finish-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.back-home-btn {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    font-size: 1.05rem;
    padding: 16px 25px;
    background: linear-gradient(135deg, #6c757d, #343a40);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    color: white;
}

.back-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.footer-tip {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 248, 240, 0.4);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-left: 4px solid #ff8c00;
    backdrop-filter: blur(10px);
}

.footer-tip p {
    margin: 0;
    color: #ff8c00;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

/* Add padding to main-content to prevent footer overlap */
.main-content {
    padding-bottom: 180px;
}

/* تحسين النسخة المحمولة */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .sidebar {
        display: none !important;
    }
    
    .main-header {
        top: 10px;
        right: 10px;
    }
    
    .main-logo {
        width: 120px;
    }
    
    .content-header {
        padding-top: 10px;
        margin-bottom: 25px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    body {
        background: linear-gradient(135deg, #ffffff 0%, #fff5f0 50%, #ffe8d6 100%);
        background-attachment: local;
    }
    
    .section-box {
        width: 100%;
        margin: 25px auto;
        border-radius: 15px;
        padding: 20px 15px;
    }
    
    .section-header {
        padding: 0 0 15px 0;
        margin: 0 0 20px 0;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-status {
        position: static !important;
        transform: none !important;
        margin-top: 8px;
        font-size: 0.85rem;
        padding: 6px 15px;
    }
    
    .section-form {
        padding: 25px 20px 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .form-row.currency-row {
        display: block;
    }
    
    .form-row.currency-row .form-group {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .form-row.currency-row .input-with-convert input {
        padding: 14px 50px 14px 18px;
        font-size: 1.1rem;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 18px;
        font-size: 1rem;
    }
    
    .location-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .location-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    #map {
        height: 280px;
        border-radius: 12px;
    }
    
    .save-section-btn {
        width: 100%;
        padding: 16px 25px;
        font-size: 1.1rem;
    }
    
    .coordinates-container,
    .location-details-container {
        margin: 20px 0;
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .coordinates-container::before,
    .location-details-container::before {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .notifications-container {
        width: 95%;
        top: 20px;
    }
    
    .notification-message {
        font-size: 1.1rem;
        padding: 16px 25px;
        border-radius: 15px;
    }
    
    /* Footer responsive */
    .data-entry-footer {
        padding: 15px 10px;
    }
    
    .footer-buttons-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .finish-review-btn,
    .back-home-btn {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        font-size: 1rem;
        padding: 14px 20px;
    }
    
    .footer-tip {
        margin-top: 10px;
        padding: 10px 15px;
    }
    
    .footer-tip p {
        font-size: 0.85rem;
    }
    
    .main-content {
        padding-bottom: 220px;
    }
}

/* تحسين الإشعارات والحركات */
.notifications-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    max-width: 90vw;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification-message {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 8px 35px rgba(255,140,0,0.25);
    padding: 20px 35px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    letter-spacing: 0.8px;
    display: inline-block;
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.notification-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.8s ease;
}

.notification-message.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.notification-message.show::before {
    left: 100%;
}

.notification-message.hide {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
}

/* تحسين الحركات والانتقالات */
@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes gradient-slide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-box:hover .section-header h2 {
    animation: pulse 2s infinite;
}

/* تنسيق نهائي للصفحة */
.page-container {
    margin: 100px auto 60px;
    max-width: 1300px;
    padding: 30px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.page-container::before {
    display: none;
}

.page-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 50%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(255,140,0,0.3);
    letter-spacing: 1px;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #ff7700);
    border-radius: 2px;
}

/* إصلاحات بنية صفحة data_entry.html */
body.fade-out {
    opacity: 0;
}

body {
    transition: opacity 0.5s ease;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.page-loader.is-hiding {
    opacity: 0;
}

.page-loader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ff8c00;
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: data-entry-spin 1s linear infinite;
}

.page-loader-text {
    margin-top: 18px;
    font-size: 1.2rem;
    color: #ff8c00;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

@keyframes data-entry-spin {
    to {
        transform: rotate(360deg);
    }
}

.section-four-form {
    position: relative;
}

.location-overlay {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 60%, rgba(255, 232, 214, 0.98) 100%);
    z-index: 10;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.15);
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 140, 0, 0.2);
}

.location-overlay-icon {
    font-size: 3.5rem;
    color: #ff8c00;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

.location-overlay-text {
    color: #ff8c00;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
}

.sections-gate-box {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.98) 60%, rgba(255, 232, 214, 0.98) 100%);
    border: 2px dashed rgba(255, 140, 0, 0.35);
}

.sections-gate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sections-gate-icon {
    font-size: 3rem;
    line-height: 1;
}

.sections-gate-text {
    margin: 0;
    color: #ff8c00;
    font-size: 1.45rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
}

.sections-gate-hint {
    margin: 0;
    color: #856404;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    max-width: 520px;
}

.confirm-save-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-save-modal[hidden] {
    display: none !important;
}

.confirm-save-modal-title {
    color: #ff8c00;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    font-family: 'Cairo', sans-serif;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.confirm-save-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* معرض الملفات المحفوظة — إدخال البيانات */
.saved-media-block {
    margin-bottom: 24px;
}

.saved-media-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.saved-media-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ff8c00;
}

.saved-media-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.12);
    color: #ff8c00;
    font-size: 0.9rem;
    font-weight: 700;
}

.saved-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 14px;
    border: 1px solid #eef0f2;
}

.saved-media-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.saved-media-card:not(.saved-media-card--pdf) {
    cursor: zoom-in;
}

.saved-media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(255, 140, 0, 0.14);
}

.saved-media-preview {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f0f2f5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.saved-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.saved-media-card:hover .saved-media-preview img {
    transform: scale(1.06);
}

.saved-media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.saved-media-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.92);
}

.saved-media-card:hover .saved-media-overlay {
    opacity: 1;
}

.saved-media-card--pdf .saved-media-preview {
    background: linear-gradient(135deg, #fff3cd, #ffe8a1);
    color: #856404;
}

.saved-media-pdf-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 6px;
}

.saved-media-pdf-label {
    font-weight: 700;
    font-size: 0.9rem;
}

.de-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    padding: 20px;
}

.de-image-lightbox[hidden] {
    display: none !important;
}

.de-image-lightbox-content img {
    max-width: min(92vw, 1100px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.de-image-lightbox-close {
    position: absolute;
    top: 18px;
    left: 22px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.de-image-lightbox-close:hover {
    background: rgba(220, 53, 69, 0.85);
}

.de-image-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.de-image-lightbox-nav:hover {
    background: rgba(255, 140, 0, 0.85);
}

.de-image-lightbox-prev {
    right: 24px;
}

.de-image-lightbox-next {
    left: 24px;
}

.de-image-lightbox-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .saved-media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .de-image-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .de-image-lightbox-prev {
        right: 10px;
    }

    .de-image-lightbox-next {
        left: 10px;
    }

    .de-image-lightbox-close {
        top: 12px;
        left: 12px;
    }
}
