* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9faf8;
        min-height: 100vh;

    display: flex;              
    flex-direction: column; 
}


.container {
    flex: 1;                   
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  
    margin-top: 150px; 
    margin-bottom: 150px; 
}


h1 {
    color: #2f3e34;
    margin-bottom: 10px;
}

.subtitle {
    color: #7a8b80;
    margin-bottom: 50px;
}

.card-wrapper {
    display: flex;
    gap: 40px;
}

.card {
    width: 260px;
    height: 260px;
    background-color: #fff7f7;
    border-radius: 16px;
    border: 2px solid #7fa8a1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #6b9b94;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card .icon i {
    color: #ffffff;
    font-size: 32px; 
}

.icon.user {
    background-color: #9ec1bb;
}

.icon span {
    font-size: 30px;
    color: white;
}

.card h3 {
    margin-bottom: 8px;
    color: #2f3e34;
}

.card p {
    font-size: 14px;
    color: #6f7f75;
    padding: 0 15px;
}

a {
    text-decoration: none;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 992px) {

  .container {
    margin-top: 120px;
    margin-bottom: 120px;
    padding: 0 20px;
    text-align: center;
  }

  .card-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
  }

  .card {
    width: 240px;
    height: 240px;
  }

}


/* Mobile */
@media (max-width: 600px) {

  .container {
    margin-top: 110px;
    margin-bottom: 100px;
    padding: 0 16px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
  }

  .card-wrapper {
    flex-direction: column;     /* stack cards */
    align-items: center;
    gap: 20px;
  }

  .card {
    width: 100%;
    max-width: 340px;
    height: auto;
    padding: 26px 18px;
  }

  .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .icon span {
    font-size: 26px;
  }

  .card p {
    font-size: 13px;
  }

	.card .icon i {
    color: #ffffff;
    font-size: 32px; 
}
}
/* =========================
   BLUR EFFECT
========================= */

.blur {
    filter: blur(8px);
    transition: 0.3s ease;
}

/* =========================
   MODAL OVERLAY
========================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

/* =========================
   MODAL BOX
========================= */

.modal-content {
    background: white;
    width: 380px;
    padding: 40px 35px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    animation: popup 0.3s ease;
}

@keyframes popup {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
}

/* =========================
   BUTTONS
========================= */

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    background: #2f5f4f;
    color: white;
    transition: 0.2s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.modal-btn.login {
    background: #1e2d27;
}

/* CLOSE BUTTON */

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

/* ===============================
   VIBRANT BLUE & SAGE GREEN THEME
================================ */

body.dark-mode {
    /* "More Blue" - Deep Midnight Navy */
    background-color: #0a192f !important; 
    color: #f1f5f9;
}

/* Card and Modal Surfaces - Lighter Green */
body.dark-mode .modal-panel,
body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .info-card,
body.dark-mode .basic-info-section,
body.dark-mode .form-column,
body.dark-mode .side-card {
    /* Lighter, softer Sage Green */
    background: #2d4a43 !important; 
    border: 1.5px solid #4a6b63 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Modal Headers */
body.dark-mode .modal-topbar {
    background: #3d6b61 !important;
}

/* Inputs - Crisp dark contrast inside the green cards */
body.dark-mode input, 
body.dark-mode select,
body.dark-mode .fake-input-field {
    background: #1b2e2a !important;
    border: 1px solid #4a6b63 !important;
    color: #ffffff !important;
}

/* Text and Labels */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: #ffffff !important;
}

body.dark-mode label {
    color: #b5d1c9 !important; /* Soft mint for high legibility */
}

/* =============================================
   FOOTER (LIGHT MODE GREEN & DARK MODE BLUE)
   ============================================= */

/* Default Light Mode: Green Footer */
footer, .footer-section {
    background-color: #2f5f4f; /* Your brand green */
    color: white;
    padding: 40px 0;
    border-top: none;
}

/* Dark Mode Override: Deep Midnight Blue */
body.dark-mode footer, 
body.dark-mode .footer-section {
    background-color: #050c18 !important; /* Even darker blue for the footer */
    border-top: 2px solid #1e293b !important; /* Strong visual line to prevent blending */
}
/* Form Section Headers */
body.dark-mode .form-section-header {
    color: #a3e2d5 !important; /* Bright Mint */
    border-bottom: 2px solid #4a6b63 !important;
}

/* Card Hover */
body.dark-mode .card:hover {
    background: #375c54 !important;
    border-color: #64ffda !important; /* Vibrant teal glow */
    transform: translateY(-4px);
}

/* Button */
body.dark-mode .save-resource-btn {
    background: #4a9685 !important;
    box-shadow: 0 4px 14px rgba(74, 150, 133, 0.3);
}