/* =========================================================
   Amal Nameh Theme – Custom Styles
   Safe for WordPress core and plugin compatibility
   ========================================================= */

body {
  font-family: "Poppins", sans-serif;
  background-color: #fafafa;
  color: #333;
  margin: 0;
  padding: 0;
}

a {
  color: #006b5a;
  text-decoration: none;
}
a:hover {
  color: #009f7f;
  text-decoration: underline;
}

header, footer {
  background: #006b5a;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 15px;
  margin: 10px 0;
}

/* Buttons */
.deed-btn {
  display: inline-block;
  background: #009f7f;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.deed-btn:hover {
  background: #007f63;
}
.deed-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Form Inputs */
input[type="text"], input[type="email"], input[type="number"], input[type="file"], select, textarea {
  width: 100%;
  padding: 8px;
  margin: 5px 0 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}
button, input[type="submit"] {
  font-size: 14px;
}

/* Fateha Scroll Section */
.fateha-scroll-container {
  background: #e8f8f5;
  color: #004f3f;
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
  position: relative;
}
.fateha-scroll-text {
  white-space: nowrap;
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* Profile form */
#amal-profile-form label {
  display: block;
  font-weight: 600;
  margin-top: 10px;
}
#amal-profile-form img {
  border-radius: 50%;
}

/* Dashboard */
#amal-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
@media (min-width: 768px) {
  #amal-dashboard {
    grid-template-columns: 1fr 1fr;
  }
}

/* Analytics Charts */
.chart-container {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-top: 15px;
}

/* Notices */
.notice {
  border-radius: 5px;
  padding: 10px;
  font-size: 14px;
}
.notice-success { background: #e7f9ed; color: #136f3d; }
.notice-info { background: #eaf4ff; color: #084c8d; }
.notice-error { background: #ffe8e8; color: #b80000; }

/* Accessibility */
:focus {
  outline: 2px dashed #009f7f;
  outline-offset: 3px;
}

/* Smooth transitions */
* {
  transition: all 0.2s ease-in-out;
}
