@font-face {
    font-family: TheSans;
    src: url(fonts/ArbFONTS-TheSans-Plain.otf);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: TheSans;
}

/* Start Index styles */
.container {

    background-image: url(img/background.jpg);
    /* background-size: contain; */
    background-size: 100% 100%;
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    /* background-repeat: no-repeat; */
}
.container2{
    text-align: center;
}

.logo img {
    width: 28rem;
    height: 8rem;
    margin-top: 5rem;
}

.main-btns {
    justify-content: space-around;
    padding-top: 20%;
}

.btn-grad {
    background-image: linear-gradient(
        to top,
        #3f1e4f 70%,
        #6e5561 85%,
        #a18b75 100%
    );
}

.btn-grad {
    width: 18rem;
    height: 4rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 2rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 1.25rem #000;
    margin-left: 1rem;
    margin-top: 1rem;
    text-decoration: none;

}
.btn-grad-yes {
    width: 6.25rem;
    height: 2rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 1.25rem #000;
    display: block;
    background-image: linear-gradient(
        to top,
        #3f1e4f 70%,
        #6e5561 85%,
        #a18b75 100%
    );
}
.btn-grad:hover,
.btn-grad-yes {
    background-image: linear-gradient(
        to top,
        #31163e 70%,
        #664d59 85%,
        #8c755d 100%
    );
    /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.foot-text {
    font-size: 1.5rem;
    color: #fff;
}

a {
    text-decoration: none;
}

/* End Index styles */

/* Start Login styles */
.login-container {
    width: 100vw;
    height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.login-form {
    height: 30vh;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.login-form label {
    font-size: 1.5rem;
    color: #fff;
    margin: 0.5rem;
    margin-left: 2rem;
    display: flex;
    justify-content:space-between;
    align-items: center;
}
.main-container3{
    width: 100vw;
    background-image: url(img/user-bg-2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 1200px;
}

.login-form input {
    width: 26.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 .625rem #807f7f;
    display: inline-block;
    border-width: 4px;
    border-style: solid;
    padding: 8px;
    font-size: 16px;
    border-color: #905FAB  #38658B #A1C782 #38658B;
}
a.btn-grad{
    padding-left: 7rem;
    padding-right: 7rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;

}

/* End Login styles */

/* Start Main styles */
.main-container {
    background-image: url(img/user-bg-2.jpg);
    background-size: 100% 100%;
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.footer{
    text-align: center;
    font-size: 1.5rem;
    color:#4b2b5e ;
}
.main-container2 {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    width: 80vw; /* Adjust as needed */
    display: flex;
    justify-content: space-between; /* Space out the logos */
    align-items: center; /* Vertically center the logos */
    margin-top: 45px;
}

.logo-right,
.logo-left {
    display: flex;
    align-items: center; /* Center the logos vertically within their containers */
}

.logo-right img,
.logo-left img {
    width: 12.5rem; /* Adjust as needed */
    display: inline-block;
}

.btn-list {
    width: 80vw;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.btn-list h1 {
    font-size: 2rem;
    color: #474747;
    margin-bottom: 2rem;
}

.btn-list ul {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.btn-list ul li,
h1.head-title {
    margin: 0.5rem;
    width: 250px;
    height: 3rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    background: linear-gradient(
        to left,
        #4b2b5e 42%,
        #515b8e 62%,
        #1d867f 72%,
        #a0c885 100%
    );
    transition: 1.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 10px #807f7f;
    display: inline-block;
}

.btn-list ul li:hover {
    background-image: linear-gradient(
        to right,
        #4b2b5e 42%,
        #515b8e 62%,
        #1d867f 72%,
        #a0c885 100%
    );
}

.foot-text-right {
    width: 80vw;
    font-size: 1.5rem;
    color: #474747;
    margin-bottom: 2rem;
    display: flex;
    justify-content: right;
}

/* End Main styles */

/* Start Program Entery styles */
.program-form {
    width: 100vw;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.program-form label {
    font-size: 1.5rem;
    color: #4b2b5e;
    margin: 0.5rem;
    width: 46.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-form input {
    width: 29.375rem;
    height: 2.5rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: #4b2b5e;
    box-shadow: 0 0 625rem #807f7f;
    display: inline-block;
    border-width: 4px;
    border-style: solid;
    padding: 8px;
    font-size: 16px;
    border-color: #905FAB  #38658B #A1C782 #38658B; /* تحديد ألوان الحدود لأربعة جوانب */
}

.program-form textarea {
    width: 29.375rem;
    height: 6.875rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    /* text-align: center; */
    transition: 1.5s;
    background-size: 200% auto;
    color: #4b2b5e;
    box-shadow: 0 0 0.625rem #807f7f;
    display: inline-block;
    border-width: 4px;
    border-style: solid;
    padding: 8px;
    font-size: 16px;
    border-color: #905FAB  #38658B #A1C782 #38658B; /* تحديد ألوان الحدود لأربعة جوانب */
}

.program-form select {
    width: 29.375rem;
    height: 3rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: #4b2b5e;
    box-shadow: 0 0 10px #807f7f;
    display: inline-block;
    padding: 0 2rem;
    border-width: 4px;

    border-style: solid;
    padding: 8px;
    font-size: 16px;
    border-color: #905FAB  #38658B #A1C782 #38658B;
}

.program-form input[type="date"] {
    width: 17.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: #4b2b5e;
    box-shadow: 0 0 10px #807f7f;
    display: inline-block;


}

.program-form input[type="file"] {
    width: 23.75rem;
    height: 3.5rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: #4b2b5e;
    box-shadow: 0 0 10px #807f7f;
    display: inline-block;

}

.program-form input[type="file"]::file-selector-button {
    content: "";
    height: 100%;
    background: #3a447a;
    color: white;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    box-shadow: 0 0 0.625rem #807f7f;
    display: inline-block;

}

.program-form .blue-btn,
.program-form .purble-btn {
    width: 100px;
    height: 2.5rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.5rem;
    text-align: center;
    background: #3a447a;
    transition: 1.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 10px #807f7f;
    display: inline-block;
}

.program-form .purble-btn {
    background: #683486;
}

.program-form .blue-btn:hover,
.program-form .purble-btn:hover {
    background-image: linear-gradient(
        to right,
        #4b2b5e 42%,
        #515b8e 62%,
        #1d867f 72%,
        #a0c885 100%
    );
}

.program-form .btn-grad {
    margin: 2rem;
}

/* End Program Entery styles */

/* Start add trainee styles */

.trainee-table {
    padding: 2rem;
    width: 70%;
    height: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 1.5rem;
    color: #4b2b5e;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px #807f7f;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #ececec;
    display: flex;
    justify-content: center;
}

.trainee-table tr.table-title {
    display: flex;
    justify-content: start;
    background-color: #4b2b5e;
    color: white;
    padding: 0.5rem 2rem;
}

.trainee-table tr {
    width: 100%;
    padding-top: 0.5rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.trainee-table td {
    width: 100%;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.trainee-table label {
    text-align: center;
}

.trainee-table input {
    width: 99%;
    height: 2.5rem;
    border: 1px solid #4b2b5e;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: #4b2b5e;
    display: inline-block;

}

.trainee-table select {
    width: 150%;
    height: 2.5rem;
    border: 1px solid #4b2b5e;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: #4b2b5e;
    display: inline-block;
}

.trainee-table input[type="submit"] {
    width: 10rem;
    color: #fff;
    background-image: linear-gradient(
        to right,
        #4b2b5e 42%,
        #515b8e 62%,
        #1d867f 72%,
        #a0c885 100%
    );
    margin-bottom: 1rem;
}

.trainee-table input[type="submit"]:hover {
    background-image: linear-gradient(
        to right,
        #4b2b5e 42%,
        #515b8e 62%,
        #1d867f 72%,
        #a0c885 100%
    );
    cursor: pointer;
}

.trainee-table .xls-file-tr {
    padding-top: 3rem;
    border-top: 1px solid #4b2b5e;
    border-radius: none;
    color: #333233;
}

.trainee-table input[type="file"] {
    width: 90%;
    height: 2.5rem;
    border: none;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    color: #4b2b5e;
    display: inline-block;

}

.trainee-table input[type="file"]::file-selector-button {
    content: "";
    height: 100%;
    background: #3a447a;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
    transition: 1.5s;
    background-size: 200% auto;
    display: inline-block;

}

.trainee-table input[type="file"]::file-selector-button:hover {
    background-image: linear-gradient(
        to right,
        #4b2b5e 42%,
        #515b8e 62%,
        #1d867f 72%,
        #a0c885 100%
    );
}

.trainee-table td a {
    text-decoration: none;
    color: red;
}

/* End add trainee styles */

/* td {
    outline: 1px solid red;
} */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    text-align: center;

}

th,
td {
    /* width: 550px; */
    height: 2.5rem;
    /* text-align: center; */
    /* font-size: 1.5rem; */
    color: #4b2b5e;
    /* box-shadow: 0 0 10px #807f7f; */
    /* border-radius: 2.5rem; */
    transition: 1.5s;
    background-size: 200% auto;
}

th {
    background-color: #f0f0f0;
}

td {
    background-color: #ffffff;
}


td {
    padding: 10px;
}

tr:hover {
    background-color: #f9f9f9;
}
textarea{
        border-width: 4px;
        border-style: solid;
        padding: 8px;
        font-size: 16px;
        border-color: #905FAB  #38658B #A1C782 #38658B;
        color: darkblue;
}
#popup{
    z-index: 999;
    width: 20%;
    height: 20%;
    position: absolute;
    padding-top: 10%;
    display: none;
}

@media (max-width: 768px) {
    html {
      font-size: 0.55rem;
    }
}

.flash-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
}

.flash-message ul {
    list-style: none; /* Removes bullet points */
    padding: 0;
    margin: 0;
}

.flash-message li {
    margin-bottom: 2px;
}


/* Bootstrap alert classes */
.alert {
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

/* Bootstrap color variations */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    color: #f00d23;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
