/*------------------------ General Styles ------------------------*/
body {
  background-color: #ebe4e4;
  font-family: 'Tajawal', sans-serif;
  line-height: 1.6;

}
\\to make fixed footer
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}


.l-container {
  width: 50%;
  margin: 50px auto;
  background-color: white;
  padding: 25px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  max-height: 90vh; /* الحد الأقصى للارتفاع */
  overflow-y: auto;
}
/*------------------------ Header ------------------------*/
header {
  position: relative; /* مهم علشان يتمركز .main-nav داخله */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #154746;
  padding: 15px 30px;
  color: white;
  font-size: 18px;
}

.logo img {
  height: 70px;
}

/* Navigation */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links,
.logging {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-links li a,
.logging li a,
.logged {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover,
.logging li a:hover,
.logged:hover {
  color: #ae863c;
}

/*------------------------ Footer ------------------------*/
footer {
  background-color: #846A33;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  width: 100%;
}

/*------------------------ Home Page ------------------------*/
.home-main {
  display: flex;
  flex-direction: column; /* أضف هذه السطر */
  justify-content: center;
  align-items: center;
  height: calc(100vh - 140px);
  background-color: #ebebeb;
}

.index-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.index-buttons {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}

.index-btn {
  display: block;
  background-color: #1f4e46;
  color: white;
  padding: 60px 80px; /* أكبر حجم للزر */
  font-size: 28px;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  text-align: center;
  min-width: 240px; /* ثبات الحجم */
}

.index-btn:hover {
  background-color: #2f6b5e;
  transform: translateY(-5px);
}

.index-btn {
  display: block;
  background-color: #1f4e46;
  color: white;
  padding: 60px 80px; /* أكبر حجم للزر */
  font-size: 28px;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  text-align: center;
  min-width: 240px; /* ثبات الحجم */
}

.index-btn:hover {
  background-color: #856404;
  transform: translateY(-5px);
}

/* -------------------------- Contracts Main ------------------*/
.home-buttons {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.home-btn {
  padding: 2rem 3rem;
  background-color: #2e4f49;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  width: 30%;
  align-items: center;
  height: 30%;
}

.home-btn:hover {
  background-color: #856404;
}

/*------------------------ Login Page ------------------------*/
.logform {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  margin-top: -350px;
}

.loglabels {
  display: block;
  margin-top: 10px;
}

.loginputs {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}


.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.forgot-password a {
  color: #007bff98;
  text-decoration: none;
  font-weight: bold;
}
.forgot-password a:hover {
  text-decoration: underline;
}


/*------------------------ Buttons ------------------------*/
a.buttons,
button.buttons,
.buttons {
  width: 50%;
  padding: 10px 20px;
  background-color: #154746;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  margin-top: 20px;
  text-decoration: none !important;
  text-align: center;
  margin-bottom: 10px;
}

a.buttons:hover,
.buttons:hover {
  background-color: #346463;
}

.buttons:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}


.form-buttons {
  display: flex;
  justify-content: center; 
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

/*  الزر الأساسي حق زر سبمت جنان في ادمن فورم بارت3*/
#submitBtn {
  width: 50%;
  padding: 10px 20px;
  background-color: #0d2625;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  margin-top: 2px;
  margin-bottom: 10px;
  text-decoration: none !important;
  text-align: center;
}

/* الزر لما يكون معطّل */
#submitBtn:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}


/* زر التفاصيل */
.btn-det {
  color: #346463;
  background-color: #fff;
  border: 2px solid #346463;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-det:hover {
  background-color: #d1f7e2;
  color: #145c32;
}

/* زر الطباعة */
.btn-prnt {
  background-color: #154746;
  color: white;
  padding: 5px 10px;
  border: 2px solid transparent;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-prnt:hover {
  background-color: #346463;
}


/*------------------------Forget-password page---------------------------*/
.reset {
  width: 70%;
  padding: 10px;
  background-color: #154746;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  display: block;
  margin: 20px auto 0;
}

.reset-form {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex: 1;
  height: calc(100vh - 140px);

}

.message {
  margin-top: 12px;
  color: rgb(13, 12, 12);
  font-weight: bold;
  text-align: center;
}


/*------------------------ Table Styles ------------------------*/
.vacation-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.vacation-table th {
  background-color: #154746;
  color: white;
  font-weight: bold;
  padding: 12px 15px;
}

.vacation-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.vacation-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.vacation-table tr:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}

/*------------------------ Status Badges ------------------------*/
.status-badge,
.status-pending,
.status-approved,
.status-rejected {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  display: inline-block;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-approved {
  background-color: #d4edda;
  color: #155724;
}

.status-rejected {
  background-color: #f8d7da;
  color: #721c24;
}

/*------------------------ Forms & Boxes ------------------------*/
.detail-box,
.form-box,
.request-page {
  background-color: white;
  padding: 30px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
}

.form-title {
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  font-size: 1.4rem;
  color: #154746;
}

.form-label,
.form-group label {
  font-weight: 600;
  color: #154746;
  display: block;
  margin-bottom: 6px;
}

.form-control,
.form-group input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.radio-group {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.radio-group label {
  font-weight: normal;
}

.error-message {
  color: red;
  text-align: center;
  margin-bottom: 20px;
}

.detail-label {
  font-weight: bold;
  margin-top: 10px;
}

.detail-value {
  margin-bottom: 15px;
  color: #333;
}

/*------------------------ Title Bar ------------------------*/
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.title-bar h2 {
  font-size: 24px;
  margin: 0;
}

.new-request-btn {
  background-color: #154746 !important;
  color: white;
  padding: 10px 18px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 20px;
}

/*------------------------ Responsive ------------------------*/
@media (max-width: 768px) {
  .vacation-table {
    font-size: 0.85rem;
  }

  .vacation-table th,
  .vacation-table td {
    padding: 8px 10px;
  }
}



/*.................guestSignPage....................*/


.GScontainer {
  max-width: 1200px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


.GSright-section,
.GSleft-section {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.GSlabel {
  font-weight: bold;
  margin-bottom: 5px;
}

.GSinput,
.GStextarea {
  width: 100%;
  padding: 8px;
  font-family: 'Cairo', sans-serif;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.GStextarea {
  resize: vertical;
}

.GSsignature-upload {
  border: 2px dashed #888;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  background-color: #fafafa;
}

.GSform-buttons {
  
  padding: 10px;
  background-color: #154746;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  display: block;
  margin: 20px auto 0;
  gap: 20px;
}

.GSbutton {
  background-color: #154746;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}


.GSform-buttons button {
  background-color: #154746;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.GSform-buttons button:hover {
  background-color: #0f3d3c;
}

.GSmessage {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
}

.GSmessage.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.GSmessage.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.GSright-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 300px;
}

.GSform {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
  min-height: 500px;
}

/*------------------------- Terms ---------------------------*/
.delete-button {
    background-color: #5c6b6ba5;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-button:hover {
    background-color: #5c6b6b;
}

.t-container {
  width: 1000px;
  margin: 50px auto;
  background-color: white;
  padding: 25px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  max-height: 90vh; /* الحد الأقصى للارتفاع */
  overflow-y: auto;
}
.r-container {
  width: 80%;
  margin: 50px auto;
  background-color: white;
  padding: 25px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  max-height: 90vh; /* الحد الأقصى للارتفاع */
  overflow-y: auto;
}

f-container {
  display: none;
  width: 20%;
  margin: 50px auto;
  background-color: white;
  padding: 25px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
  max-height: 90vh; /* الحد الأقصى للارتفاع */
  overflow-y: auto;
}

#step1 {
  display: block;
}


th {
        text-align: center;
    }    


.t-buttons-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.t-buttons-form .t-buttons {
  padding: 10px 25px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-items: center;
  margin-bottom: 10px;
}

.t-buttons-form .t-buttons[type="submit"] {
  background-color: #0f3d3c;
  color: white;
}

.t-buttons-form .t-buttons[type="submit"]:hover {
  background-color: #346463;
}

/* زر الإلغاء */
#cancelAdd {
  background-color: #6c757d;
  color: white;
}

#cancelAdd:hover {
  background-color: #5c636a;
}

#warningMsg {
  color: #b02a37;
  background-color: #fdecea;
  border: 1px solid #f5c6cb;
  font-weight: 500;
  font-size: 11px;
  margin-top: 1px;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  width: 50%;
}

/*-----contract detials page----*/

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px; /* Optional: some bottom space */
}
.nextCD {
  width: 20%;
  display: inline-block;
  background-color: #184C4B; /* dark teal */
  color: white;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-family: 'Arial', sans-serif; 
}

/* خلفية dropdown نفسها */
.dropdown-menu {
  background-color: #f9f9f9; /* لون الخلفية */
  border: 1px solid #ccc;
  min-width: 160px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* عناصر القائمة */
.dropdown-menu .dropdown-item {
  color: #333; /* لون الخط */
  padding: 10px 15px;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

/* تأثير عند المرور */
.dropdown-menu .dropdown-item:hover {
  background-color: #e0f0ff; /* لون عند الهوفر */
  color: #000; /* خط أوضح عند الهوفر */
}

.welcome-box {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.welcome-box h3 {
  color: #184c45;
  font-weight: bold;
}
.home-main {
  margin-top: 0 !important;
  padding-top: 10px; /* أو حسب ما يناسبك */
}
