
/* الأنماط العامة */

  


.divtext p {
    color: green;
    text-align: center;
    margin: 20px;

} 
  /* الأنماط العامة */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}


body {
    
     
background-color: #eafde9; /* لون الخلفية الفاتح */
display: flex;
flex-direction: column; /* ترتيب العناصر عموديًا */
justify-content: space-between; /* توزيع المساحة بين العناصر */
min-height: 100vh; /* ارتفاع الصفحة على الأقل 100% من ارتفاع الشاشة */
overflow-x: hidden; /* إخفاء التمرير الأفقي */
}

.form-container {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}
.box-container  {
font-family: 'Cairo', sans-serif;
flex: 1; /* جعل الصندوق يملأ المساحة المتاحة */
display: flex;
justify-content: center;
align-items: center;
padding: 20px; /* إضافة مساحة حول الصندوق */
flex-direction: column;
align-content: center;
}


/* General Styles */
.articles-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Sticky Header */
.sticky-header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding:15px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0px;
    z-index: 1000;
}

.sticky-header h3 {
    font-size: 22px;
  color: #0d454f;
  margin:0;
  text-shadow: 1px 5px 15px #3290c8a8, 0 0 4px #3a8e77, 0 0 0px #171212;
}

.button,.btn-create-fixed {
    background-color: #098e92;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-create-fixed:hover {
    background-color: #076366;
}

/* Scrollable Container */
.scrollable-container {
    max-height: calc(100vh - 200px); /* تعديل الارتفاع بناءً على المساحة المتاحة */
    overflow-y: auto;
    padding: 20px;
    font-family: 'Cairo', sans-serif;
flex: 1; /* جعل الصندوق يملأ المساحة المتاحة */

justify-content: center;
align-items: center;
padding: 20px; /* إضافة مساحة حول الصندوق */
flex-direction: column;
align-content: center;
}

.dashboard {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
   
}

/* Articles Table */
.articles-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}

.articles-table th,

.articles-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}


.articles-table th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}
/* إزالة اللون الأزرق والتسطير من الروابط داخل الجدول */
.articles-table a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.articles-table a:hover {
    text-decoration: underline;
    
}

/* شكل رأس العمود عند النقر */
th.sortable {
    cursor: pointer;
    user-select: none;
}

/* الأيقونات */
th.sortable .arrow {
    margin-right: 5px;
    font-size: 12px;
    color: #666;
}

.articles-table tr:hover {
    background-color: #f9f9f9;
}

.articles-table td {
    color: #555;
}

/* Status Styles */
.status {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status.published {
    background-color: #d4edda;
    color: #155724;
}

.status.draft {
    background-color: #fff3cd;
    color: #856404;
}

/* Buttons */

.btn-edit {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-edit:hover {
    background-color: #45a049;
}

.btn-delete {
    background-color: #0fe9c5;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background-color: #e53935;
}


input[type="text"],
input[type="password"],
input[type="email"] {
 background-color: #ecf4fd; /* أزرق فاتح */
border: 1px solid #0359b4; /* حواف زرقاء */
color: #000;
width: 100%;
padding: 5px;
margin: 10px 0;
border: 1px solid #ddf3c3;
border-radius: 10px;
font-size: 16px;
outline: none;
transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus
input[type="email"]:focus {
    
border-color: #039216;
background-color: #cce5ff; /* أزرق فاتح */
border: 1px solid #055fc0; /* حواف زرقاء */
}



h2 {
    color: #388347;
    font-size: 24px;
    margin-bottom: 20px;
}

input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}




button:hover {
    background-color: #042711;
}

.register-link {
    margin-top: 20px;
    color: #1e4e28;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #042711;
}

.success-message {
    color: #388347;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}
#error-message {
    color: #a51e1e;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}
    
    .register-link:hover {
    color: #1d503b;
    }
    p {
    color: #1d503b;
    }
    