/* css/style.css */
body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
  direction: rtl;
  padding: 18px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.text-center {
  text-align: center;
  margin-bottom: 12px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row {
  display: flex;
  gap: 10px;
}
.col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.col-full {
  width: 100%;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
}
input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

.buttons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.btn {
  background: #2b71f3;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.btn.secondary {
  background: #6c757d;
}
.btn.danger {
  background: #dc3545;
}
.btn.small {
  padding: 6px 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

.msg {
  min-height: 22px;
  margin-top: 8px;
  color: green;
}
.msg.error {
  color: red;
}

.admin-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.admin-controls input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.card-record {
  display: flex;
  gap: 10px;
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 8px;
  align-items: center;
  background: #fafafa;
}
.card-record .left {
  width: 180px;
}
.card-record .center {
  flex: 1;
}
.card-record .right {
  width: 220px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.cont-admin-login,
.main-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  width: 100%;
}

.login-box,
.cont-main {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  width: 300px;
  text-align: center;
}

.login-box h2 {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.btn {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  background-color: #0056b3;
}
.cont-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  width: 300px;
  text-align: center;
  gap: 10px;
}
.cont-main a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  text-align: center;
  transition: background-color 0.3s ease;
}
.cont-main a:hover {
  background-color: #0056b3;
}

.search-cont {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 8px;
  align-items: center;
  background: #fafafa;
  margin-bottom: 15px;
  width: 100%;
}
.search-cont div {
  margin-bottom: 15px;
  width: 100%;
}
.search-cont input,
.search-cont select,
.search-cont textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  box-sizing: border-box;
}
.search-cont .buttons {
  margin-top: 20px;
}
.search-cont .btn {
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
}
