@import url('https://fonts.googleapis.com/css2?family=Amiri&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* Global Styles */
body {
    /*font-family: 'Amiri', serif;*/
    /*font-family: 'Cairo', sans-serif;*/
    /*font-family: 'Almarai', sans-serif;*/
    font-family: 'Tajawal', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 0;
}
#top-header{
    background: linear-gradient(135deg, #003d79, #6a1b9a); /* Eleagent Blue to Purple */
    color: #ffffff; /* White text */
    padding: 20px;
    text-align: center;	
}
#top-header a{
	color: #ffffff; /* White text */
	text-decoration: none;
}

h1 {
    font-size: 24px;
}

h3 {
	font-size: 18px;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-weight: 700;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid #004080;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    flex-direction: column;
}

form .form-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

form label {
    color: #004080;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
}

form input[type="text"] {
    padding: 8px;
    border: 1px solid #004080;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
}

th input[type="text"]{
	text-align: right;
	font-size: 1.1em;
} 

form input[type="submit"] {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #004080;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    width: 50%;
    margin: auto;
}

form input[type="submit"]:hover {
    background-color: #003366;
}

#container {
    margin: auto;
    max-width: 800px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #004080;
}

th, td {
    padding: 8px;
    text-align: center;
}

th {
    background-color: #004080;
    color: #ffffff;
    text-align: center;
    direction: ltr;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.error-message {
    color: #ff0000;
    font-weight: bold;
}

footer {
	margin: 50px  auto;
    background-color: #004080;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.header h1, h2, h3 {
    margin: 0px 10px;
}

.fields {
    display: flex;
    flex-direction: row;
}

/* Page 1 specific styles */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
    justify-content: flex-start;
    max-width: 100%;
}

.radio-item {    
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 5px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 95%;
}

.radio-item:hover {
    transform: translateY(-2px);
    border-color: #004080;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + label {
    background-color: #004080;
    color: white;
    border-color: #004080;
    box-shadow: 0 4px 10px rgba(0, 64, 128, 0.5);
    
}

label {
    display: block;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
}

tr:hover {
    background-color: #e8f0ff;
}

.horizental-menu{
	background-color: #003d79; /* Eleagent Blue */
    border-bottom: 2px solid #002b5b; /* Darker shade for bottom border */	
}

.horizental-menu ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.horizental-menu ul li{
	margin: 0;

}
.horizental-menu ul li a{
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: #ffffff; /* White text */
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.horizental-menu a:hover,
.horizental-menu a:focus {
    background-color: #0056b3; /* Slightly lighter blue on hover */
    color: #eaf4ff; /* Light blue text on hover */
    border-radius: 4px;
}

@media only screen and (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }
    .fields{
    	flex-direction: column;
    	width: 100%;
    }
    
    form label{
    	margin-right: 0;
    	max-width: 100%;
	    display: inline-block;
	    overflow: hidden;
    }
    #container{
    	padding:0;
    	margin: 0;
    }
    form input[type="text"] {
    width: 50px;
    }
}