body {
    margin: 0;
    padding: 0;
    background:
        linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(251,238,193,0.3) 50%, rgba(255,255,255,0.95) 100%),
        url("../images/asd.jpg") no-repeat center center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
}

.scrolling-message {
    position: fixed;
    top: 10px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1000;
    font-size: 20px;
    color: #000;
}

.scrolling-message::before {
    content: "أهلاً وسهلاً بكم في موقع المحامي محمد عبدالله";
    display: inline-block;
    animation: scroll-right-left 8s linear infinite;
}

@keyframes scroll-right-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.main-content {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn {
    display: block;
    width: 300px;
    margin: 15px 0;
    padding: 14px 28px;
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: #000;
    color: #fff;
}
.calendar-widget {
    position: fixed;
    bottom: 0;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.0); /* شفافية */
    border: 1px solid rgba(0, 0, 0, 0.3); /* إطار خفيف */
    border-radius: 12px 12px 0 0;
    padding: 20px;
    font-size: 20px;
    color: #000;
    box-shadow: none;
    direction: rtl;
    width: 360px;
    line-height: 1.8;
    backdrop-filter: blur(5px); /* تمويه خلف المربع */
}

.calendar-header {
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #aaa;
    padding-bottom: 6px;
    text-align: center;
    color: #000;
}

.calendar-body div {
    margin: 6px 0;
    text-align: right;
}
.register-form {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(251,238,193,0.3) 50%, rgba(255,255,255,0.95) 100%);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    width: 360px;
}

.register-form label {
    margin: 10px 0 5px;
    font-weight: bold;
    color: #000;
}

.register-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 16px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
}

.form-buttons .btn {
    width: 48%;
}
input[type="text"],
input[type="password"] {
    width: 300px;
    margin: 10px 0;
    padding: 14px 28px;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 18px;
    background-color: transparent;
    color: #000;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.7);
}

form .btn {
    cursor: pointer;
}

.login-form {
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(251,238,193,0.3) 50%, rgba(255,255,255,0.95) 100%);
    padding: 20px;
    border-radius: 15px;
    max-width: 480px;
    margin: 50px auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form label {
    font-weight: bold;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 130px;
    padding-bottom: 40px;
}

.custom-btn {
    padding: 12px 225px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(251,238,193,0.3) 50%, rgba(255,255,255,0.95) 100%);
    color: #000;
    border: 1px solid #aaa;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.custom-btn:hover {
    background: linear-gradient(to right, #ffffff, #d4af37);
    transform: scale(1.05);
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
  margin: auto;
  position: relative;
  margin-top: 15%;
  box-shadow: 0 0 10px #00000050;
}

.modal-content input {
  width: 80%;
  padding: 8px;
  margin: 10px 0;
  font-size: 16px;
}

.modal-content button {
  background-color: #d4af37;
  border: none;
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

.close {
  position: absolute;
  left: 10px;
  top: 10px;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
}
/* تنسيق المودال */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    position: relative;
}

.modal-content input {
    width: 80%;
    padding: 8px;
    margin: 10px 0;
    font-size: 16px;
}

.modal-content button {
    padding: 8px 16px;
    font-size: 16px;
    border: none;
    background-color: #d4af37;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.error-message {
    color: red;
    margin-top: 10px;
    font-weight: bold;
}

/* لون للموعد الماضي */
.past {
    background-color: #e0e0e0; /* رمادي فاتح */
}

/* لون للموعد اليوم */
.today {
    background-color: #fff8dc; /* أصفر فاتح */
}

/* لون للمواعيد المستقبلية */
.future {
    background-color: #ffffff; /* أبيض */
}
.task {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: right;
    word-wrap: break-word; /* يكسر الكلمات الطويلة */
    white-space: pre-wrap; /* يحترم الأسطر الجديدة والنص الطويل */
    overflow-wrap: break-word; /* تأكيد إضافي للكسر */
}

@media print {
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    direction: rtl;
    font-family: 'Arial', sans-serif;
    color: #333;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-content label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    color: #555;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: #3498db;
    outline: none;
}

.modal-content .custom-btn {
    background-color: #2980b9;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal-content .custom-btn:hover {
    background-color: #1f6391;
}

.close {
    color: #e74c3c;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #c0392b;
}
