/* Main Styles for Kelulusan App - Elegant & Professional Theme */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.2);
  --card-opacity: 0.92;
  --blur-amount: 10px;
  --transition-speed: 0.3s;
  --font-family: 'Roboto', sans-serif;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-light);
  line-height: 1.7;
  height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Full page background */
.bg-fullscreen {
  background: url('../images/bg.jpg') no-repeat center center;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(44, 62, 80, 0.85) 0%, 
    rgba(52, 152, 219, 0.7) 50%, 
    rgba(44, 62, 80, 0.85) 100%);
  z-index: -1;
}

.leaf-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% auto;
  opacity: 0.07;
  z-index: -1;
  pointer-events: none;
}

/* Full height content */
.content-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* School info section */
.school-info {
  text-align: center;
  margin-bottom: 2rem;
}

.school-info img {
  width: 120px;
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.school-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
  font-family: var(--font-family);
}

.school-info p {
  font-size: 1.1rem;
  color: var(--text-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-family: var(--font-family);
  line-height: 1.5;
}

/* Countdown card */
.countdown-card {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 2rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.75rem;
  border: none;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #6366F1, #8B5CF6, #EC4899);
  opacity: 0.9;
}

.countdown-title {
  text-align: center;
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-family: var(--font-family);
  position: relative;
  display: block;
  padding-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.countdown-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.5), transparent);
  transform: translateX(-50%);
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.countdown-box {
  width: 100px;
  height: 100px;
  background: #ffffff;
  color: #4F46E5;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
  z-index: 0;
}

.countdown-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0) 100%);
  pointer-events: none;
}

.countdown-number {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
  margin-bottom: 0.2rem;
  background: linear-gradient(90deg, #4F46E5, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  position: relative;
  z-index: 1;
  color: #6B7280;
}

.announcement-container {
  text-align: center;
  width: 100%;
}

.announcement-date {
  background-color: #fff0c9;
  color: rgb(62, 62, 62);
  padding: 0.25rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  margin: 1.5rem auto 0;
  font-weight: 200;
  box-shadow: var(--shadow-light);
  letter-spacing: 0.02em;
  font-size: 0.75rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(231, 76, 60, 0.2);
  display: inline-block;
}

.announcement-date i {
  margin-right: 0.5rem;
}

/* Announcement section */
.announcement-section {
  background-color: rgba(255, 255, 255, var(--card-opacity));
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-medium);
  /*margin-bottom: 1.5rem;*/
  position: relative;
  overflow: hidden;
  color: #000000;
}

.announcement-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.announcement-section h3 {
  position: relative;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #000000;
  padding-bottom: 10px;
  display: inline-block;
  font-family: var(--font-family);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.announcement-section h3 i {
  margin-right: 8px;
}

.announcement-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #000000;
  font-family: var(--font-family);
  letter-spacing: 0.02em;
  font-weight: 300;
}

.announcement-content p {
  margin-bottom: 0.75rem;
}

.announcement-content strong {
  font-weight: 500;
}

/* Social links container */
.social-links-container {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0.5rem 0;
}

.social-links-container p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.social-links a {
  display: inline-block;
  margin: 0 0.4rem;
  font-size: 0.7rem;
  padding: 0.4rem 1.25rem;
  background: linear-gradient(145deg, var(--accent-color), #c02b7a);
  border-radius: 50px;
  transition: all var(--transition-speed) ease;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-light);
  letter-spacing: 0.03em;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.social-links a i {
  margin-right: 0.3rem;
}

/* Footer */
.footer {
  padding: 1rem 0;
  text-align: center;
  position: relative;
  margin-top: auto;

}

.footer p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  font-weight: 300;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Form styling for login */
.form-control {
  height: 48px;
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: var(--text-light);
  font-family: var(--font-family);
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
  color: var(--text-light);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.form-label {
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  font-family: var(--font-family);
}

.btn-primary {
  padding: 12px 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: var(--font-family);
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 8px;
  padding: 1rem;
  font-weight: 500;
}

/* Responsiveness */
@media (max-width: 768px) {
  .school-info h1 {
    font-size: 1.8rem;
  }
  
  .school-info p {
    font-size: 0.9rem;
  }
  
  .countdown-boxes {
    gap: 1rem;
  }
  
  .countdown-box {
    width: 85px;
    height: 85px;
  }
  
  .countdown-number {
    font-size: 2.2rem;
  }
  
  .countdown-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .announcement-date {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .countdown-boxes {
    gap: 0.5rem;
  }
  
  .countdown-box {
    width: 70px;
    height: 70px;
  }
  
  .countdown-number {
    font-size: 1.8rem;
    margin-bottom: 0.1rem;
  }
  
  .countdown-label {
    font-size: 0.7rem;
  }
  
  .school-info h1 {
    font-size: 1.6rem;
  }
  
  .countdown-card {
    padding: 1.5rem 0.75rem;
  }
  
  .announcement-section {
    padding: 1.25rem;
  }
  
  .social-links a {
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
  }
}

/* Admin login form styling */
.admin-login-form .form-control {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-weight: 400;
}

.admin-login-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.admin-login-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.admin-login-form .form-label {
  color: var(--text-light);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.admin-login-form .input-group-text {
  background-color: rgba(52, 152, 219, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.admin-login-form .btn-outline-secondary {
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(52, 152, 219, 0.3);
}

.admin-login-form .btn-outline-secondary:hover {
  background-color: rgba(52, 152, 219, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.back-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.back-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: white;
}

/* Announcement Open Card */
.announcement-open-card {
  background-color: rgba(39, 174, 96, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.75rem;
  border: 1px solid rgba(39, 174, 96, 0.3);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.announcement-open-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #27ae60, #2ecc71);
  opacity: 0.7;
}

.announcement-open-container {
  text-align: center;
}

.announcement-open-message {
  background-color: rgba(255, 255, 255, 0.95);
  color: #27ae60;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  margin: 1rem auto;
  font-weight: 500;
  box-shadow: var(--shadow-light);
  letter-spacing: 0.02em;
  font-size: 1rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(39, 174, 96, 0.2);
  display: inline-block;
}

.announcement-open-message i {
  color: #27ae60;
  font-size: 1.2rem;
}

.login-form-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-medium);
  margin: 1rem auto;
  max-width: 500px;
}

.login-form-container .form-label {
  color: #000000;
  font-weight: 500;
}

.login-form-container .form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: var(--text-dark);
}

.login-form-container .form-control:focus {
  border-color: #27ae60;
  box-shadow: 0 0 0 0.25rem rgba(39, 174, 96, 0.25);
  color: var(--text-dark);
}

.login-form-container .form-control::placeholder {
  color: rgba(44, 62, 80, 0.5);
}

.login-form-container .btn-primary {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.login-form-container .btn-primary:hover {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
} 