/* style.css - Premium Islamic Theme with Modern UI */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Scheherazade+New:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
  --islamic-green-dark: #003300;
  --islamic-green-medium: #006400;
  --islamic-green-light: #228B22;
  --gold-primary: #FFD700;
  --gold-secondary: #D4AF37;
  --cream: #F5F5DC;
  --text-light: #F8F8F8;
  --text-dark: #222;
}

/* Base Styles */
body {
  font-family: 'Poppins', 'Scheherazade New', serif;
  background-color: var(--islamic-green-dark);
  color: var(--text-light);
  margin: 0;
  padding: 0;
  background-image: 
    url('assets/islamic-pattern.png'),
    linear-gradient(135deg, var(--islamic-green-dark) 0%, var(--islamic-green-medium) 100%);
  background-blend-mode: overlay;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    transform: translateY(20px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Header Styles */
.islamic-header {
  background: linear-gradient(135deg, var(--islamic-green-dark) 0%, var(--islamic-green-medium) 100%);
  color: var(--gold-primary);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 100;
  border-bottom: 3px solid var(--gold-primary);
}

.islamic-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/arabesque-pattern.png');
  background-size: 300px;
  opacity: 0.08;
  z-index: -1;
}

.header-top-bar {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.prayer-times {
  display: flex;
  gap: 20px;
  padding-left: 20px;
}

.prayer-times span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.announcements {
  flex-grow: 1;
  padding: 0 20px;
}

.header-main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  width: 80px;
  height: auto;
  margin-right: 20px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

.logo-text h1 {
  margin: 0;
  font-size: 2.2rem;
  font-family: 'Amiri', serif;
  color: var(--gold-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.logo-text .tagline {
  margin: 0;
  font-size: 1rem;
  color: var(--cream);
  font-style: italic;
  letter-spacing: 1px;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: var(--gold-primary);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
}

.main-nav a:hover {
  background-color: var(--gold-primary);
  color: var(--islamic-green-dark);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  border-color: var(--islamic-green-dark);
  transform: translateY(-2px);
}

.main-nav a i {
  font-size: 1.1rem;
}

/* Dropdown Menu */
.user-profile .dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--islamic-green-medium);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid var(--gold-primary);
}

.user-profile:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  padding: 10px 15px;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  display: block;
}

.dropdown-menu a:hover {
  background-color: var(--gold-primary);
  color: var(--islamic-green-dark);
}

/* Main Content */
main {
  flex: 1;
  padding: 40px;
  max-width: 1400px;
  margin: 30px auto;
  background-color: rgba(0, 51, 0, 0.85);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.8s ease-out;
  backdrop-filter: blur(5px);
  border: 1px solid var(--gold-primary);
  position: relative;
  overflow: hidden;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/subtle-pattern.png');
  background-size: 400px;
  opacity: 0.05;
  z-index: -1;
}

/* Footer */
footer {
  background: linear-gradient(to bottom, var(--islamic-green-medium), var(--islamic-green-dark));
  color: var(--gold-primary);
  text-align: center;
  padding: 20px;
  margin-top: auto;
  box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  border-top: 1px solid var(--gold-primary);
}

/* Buttons */
button, .btn {
  background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
  color: var(--islamic-green-dark);
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

button:hover, .btn:hover {
  background: linear-gradient(to right, var(--gold-secondary), var(--gold-primary));
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(255, 215, 0, 0.4);
}

button:active, .btn:active {
  transform: translateY(1px);
}

button::after, .btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

button:focus:not(:active)::after, .btn:focus:not(:active)::after {
  animation: pulseGold 1s ease-out;
}

/* Forms */
form {
  background-color: rgba(0, 100, 0, 0.3);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 30px auto;
  transition: all 0.4s;
  border: 1px solid var(--gold-primary);
  backdrop-filter: blur(5px);
}

form:hover {
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.2);
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.form-header h2 {
  color: var(--gold-primary);
  font-family: 'Amiri', serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.form-header::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: var(--gold-primary);
  margin: 10px auto;
}

.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-primary);
  font-weight: 500;
}

.input-group input, 
.input-group select, 
.input-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
  outline: none;
  border-color: var(--gold-secondary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.4);
}

.input-group .input-icon {
  position: absolute;
  right: 15px;
  top: 40px;
  color: var(--gold-primary);
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(0, 100, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

th {
  background: linear-gradient(to right, var(--islamic-green-dark), var(--islamic-green-medium));
  color: var(--gold-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

tr:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

/* Cards */
.card {
  background-color: rgba(0, 100, 0, 0.3);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
  border-color: var(--gold-primary);
}

.card-header {
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  margin: 0;
  color: var(--gold-primary);
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
}

.card-header .icon {
  font-size: 1.8rem;
  color: var(--gold-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .header-main-content {
    padding: 20px;
  }
  
  .logo-text h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 992px) {
  .main-nav ul {
    gap: 10px;
  }
  
  .main-nav a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .header-top-bar {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .prayer-times {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
  }
  
  .header-main-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .main-nav {
    width: 100%;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 5px;
  }
  
  .main-nav a {
    justify-content: center;
  }
  
  .user-profile .dropdown-menu {
    width: 100%;
  }
  
  main {
    padding: 20px;
    margin: 20px;
  }
}

@media (max-width: 576px) {
  .logo {
    flex-direction: column;
    text-align: center;
  }
  
  .logo img {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .logo-text h1 {
    font-size: 1.5rem;
  }
  
  form {
    padding: 20px;
  }
}

/* Print Styles */
@media print {
  header, footer, nav, .no-print {
    display: none;
  }
  
  main {
    background: white;
    color: black;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
  }
  
  table {
    background: white;
    color: black;
  }
  
  th, td {
    color: black;
    border-color: #ddd;
  }
}