* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #ffffff; /* لون الروابط */
}

a:active {
    background-color: #113c64; /* لون خلفية الرابط عند النقر عليه */
}

/* Layout Containers */
.view-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.view-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.view-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.view-header img {
    height: 40px;
    border: 1px solid #ddd;
}

/* Grid System */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* Content Blocks */
.info-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    display: inline-block;
}

.info-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.info-item2 {
    background: none;
    padding: 1rem;
    border-radius: 5px;
}

.gallery {
    margin-top: 2rem;
}

.gallery h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    color: white;
    font-weight: bold;
}

.status-badge2 {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    color: black;
    font-weight: bold;
    background-color: #2e94d1; /* وسم حالة ثانوي مطلي بالأخضر */
}

.status-pending { background-color: #f0ad4e; }
.status-approved { background-color: #2e94d1; } /* وسم الحالة "تمت الموافقة" */
.status-rejected { background-color: #d9534f; }
.status-on-hold { background-color: #777; }

/* Notes Section */
.notes-container {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.note-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.note-content {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.no-notes {
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Document Upload */
.doc {
    cursor: pointer;
    border: 2px dashed #ccc;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 180px;
}

.doc.selected { border-color: #2e94d1; } /* لون الإطار عند اختيار مستند */

.doc .icon {
    font-size: 3em;
    color: #777;
    transition: opacity 0.3s;
}

.doc .doc-label {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

.doc .preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.doc.selected .icon,
.doc.selected .doc-label {
    opacity: 0;
}

.doc.selected .preview-img { display: block; }

#upload-loader { font-size: 2em; }

/* Buttons & Actions */
.action-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.action-buttons button,
button[type='submit'] {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.button-group {
    text-align: center;
    margin-top: 2rem;
}

.btn-print { background-color: #6c757d; color: white; }
.btn-pdf { background-color: #2e94d1; color: white; } /* زر PDF (لون أزرق مخضر) */
.btn-back { display: inline-block; margin-top: 2rem; color: #007bff; text-decoration: none;}
.bg-danger { background-color: #c54949; color: #dfdfdf; border-radius: 8px; }
.bg-primary { background-color: #cf6969; color: #fff; border-radius: 8px; }
.bg-green { background-color: #113c64; color: #fff; border-radius: 8px; } /* زر أخضر رئيسي */
.bg-green:hover { background-color: #06304d; } /* لون الزر الأخضر عند التمرير فوقه */

/* Form Elements */
.status-options {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input:focus {
    border: 1px solid #006428; 
    outline: none;
    border-radius: 4px;
}

/* Messaging */
.success-message {
    text-align: center;
    padding: .5rem;
    background-color: #d8ecff;
    color: #113c64;
    border: none;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Utility Classes */
.he { height: 45px; }
.gap-half { display: inline-block; }

/* Welcome Page Styles */
.welcome-header-custom {
    background: linear-gradient(rgba(0,0,0,0.6), transparent, rgba(0,0,0,0.8)), url('/static/assets/img/121.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.gabon-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.lang-select {
    background-color: #ffffff30;
    border-color: white;
    color: white;
    border-radius: 4px;
    padding: 8px;
}

.lang-select option {
    color: black;
}

.welcome-content {
    padding-bottom: 4rem;
}

.welcome-text-container {
    flex: 2;
    color: white;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px #00000080;
}

.welcome-subtitle {
    max-width: 80%;
}

.welcome-buttons-container {
    flex: 1;
    align-items: flex-end;
}

.welcome-btn {
    width: 18rem;
    max-width: 100%;
    text-align: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

footer .color-gold{
    color: #f0ac1e;
}