﻿* {
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #050505; 
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    direction: ltr;
}

.header {
    background-color: #0a0a0a;
    color: #d90000; 
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(217, 0, 0, 0.2); 

    padding: 60px 40px;
    border-bottom: 3px solid #d90000; 
   
    display: flex;
    align-items: center;
    justify-content: space-around; 
    flex-wrap: wrap; 
 
    min-height: 200px;
}

    .header img {
       
        max-height: 300px; 
        width: auto; 
        display: block;
        margin: 10px;
        opacity: 0.9; 
       
        position: static;
        transform: none;
    }

    .header h1 {
        margin: 0;
        padding: 10px;
        font-size: 2.2em; 
        text-shadow: 0 0 10px rgba(217, 0, 0, 0.6); 
        font-weight: bold;
    }

/* -------------------------------------
   شريط التنقل Navbar
-------------------------------------- */
.navbar {
    background-color: #050505;
    width: 80%;
    max-width: 800px;
    margin: 20px auto; 
    border-radius: 5px;
    border: 1px solid #4d0000;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 5px;
    flex-wrap: wrap;
}

    .navbar a {
        display: block;
        color: #cccccc !important;
        text-align: center;
        padding: 14px 20px;
        text-decoration: none !important; 
        font-size: 16px;
        font-weight: bold;
        background-color: transparent !important;
        transition: all 0.3s;
    }

        .navbar a:hover {
            color: #d90000 !important;
            text-shadow: 0 0 8px rgba(217, 0, 0, 0.8);
        }

/* -------------------------------------
   الصندوق المركزي والمحتوى
-------------------------------------- */
.box {
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    background: #0f0f0f;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(217, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #4d0000;
}

/* -------------------------------------
   الحقول والأزرار
-------------------------------------- */
input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    background-color: #000000;
    color: #d90000;
    border: 1px solid #4d0000;
    border-radius: 5px;
}

    input:focus {
        outline: none;
        border-color: #d90000;
        box-shadow: 0 0 8px rgba(217, 0, 0, 0.4);
    }

.btn {
    background-color: #0a0a0a;
    color: #d90000;
    border: 1px solid #d90000;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .btn:hover {
        background-color: #d90000;
        color: #000000;
        box-shadow: 0 0 15px rgba(217, 0, 0, 0.6);
    }

/* -------------------------------------
   الجداول وروابط الإجراءات
-------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #4d0000;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #0a0a0a;
    color: #d90000;
    border-bottom: 2px solid #d90000;
}

.action-link {
    text-decoration: none;
    padding: 5px 10px;
    margin: 2px;
    color: #ffffff;
    border-radius: 3px;
    display: inline-block;
}

.edit-btn {
    background-color: #1a1a1a;
    border: 1px solid #0055ff;
    color: #0055ff;
}

    .edit-btn:hover {
        background-color: #0055ff;
        color: #ffffff;
    }

.del-btn {
    background-color: #1a1a1a;
    border: 1px solid #ff3333;
    color: #ff3333;
}

    .del-btn:hover {
        background-color: #ff3333;
        color: #ffffff;
    }

/* -------------------------------------
   تنسيق قسم الأسئلة (Who, What, etc.)
-------------------------------------- */
.info-section {
    text-align: left;
    padding: 15px;
    border-bottom: 1px dashed #4d0000;
}

    .info-section h3 {
        color: #d90000;
        margin-bottom: 5px;
    }
