/* Import Calligraphy Font */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* Import Readable Font for MVDV */
@import url('https://fonts.googleapis.com/css2?family=Lora&display=swap');

/* General Body Styling */
body {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #FDF5BF; /* Warm Peach */
    color: #2C2C2C; /* Dark Gray */
}

/* Main Heading Styling */
.main-heading {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    color: #d35400;  /* Or your preferred dark orange */
    word-spacing: 10px;
    text-align: center;
}

/* MVDV font specifically */
.mvd {
    font-family: 'Lora', serif;
    font-weight: bold;
    color: #d35400; /* A deeper tone for contrast */
}

/* Ensure Navigation Bar is Always Visible */
nav {
    background-color: #FFCC99; /* Bright Orange */
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border: 2px solid #D74A1E; /* Deep Orange */
    border-radius: 8px;
    width: 95%;
    margin: 10px auto;
    flex-wrap: wrap; /* Prevents hidden buttons */
    overflow: visible; /* Ensures all tabs remain visible */
}

/* Navigation Buttons - Make Sure They're Always Visible */
nav a {
    display: block; /* Ensures all tabs show up */
}

/* Buttons */
nav a button {
    background-color: #FF9A3C; /* Lighter Orange */
    color: white;
    font-size: 16px;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    min-width: 120px;
    text-align: center;
}

/* Hover Effect */
nav a button:hover {
    background-color: #D74A1E; /* Darker Orange */
}

/* Responsive Fix */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap; /* Ensures all buttons fit */
    }

    nav a button {
        flex-grow: 1; /* Allows buttons to fit evenly */
        width: auto;
    }
}



/* Buttons - Smooth, Vibrant & Interactive */
button, .btn {
    background: linear-gradient(to right, #FF6F3C, #FF9A3C); /* Gradient Orange */
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(255, 111, 60, 0.5); /* Subtle Glow */
}

/* Hover Effect - Enlarges & Changes Color */
button:hover, .btn:hover {
    background: linear-gradient(to right, #D74A1E, #FF6F3C); /* Darker Orange */
    transform: scale(1.1); /* Increases button size */
    box-shadow: 0px 6px 12px rgba(255, 111, 60, 0.7); /* Brighter Glow */
}

/* Click Effect - Slight Press */
button:active, .btn:active {
    transform: scale(0.95); /* Slight Shrink */
    box-shadow: 0px 2px 5px rgba(255, 111, 60, 0.4);
}

.mvd-label {
     
  /*box-sizing: border-box;*/
  padding: 10px;
  margin: 8px 0 15px 0;
  color: #2C2C2C;
  font-size: 16px;
}
.mvd-text {
     width: 650px;
  box-sizing: border-box;
  display: block;
  padding: 10px;
  margin: 8px 0 15px 0;
  border: 1px solid #9B2226;
  border-radius: 5px;
  background: #F6F1E9;
  color: #2C2C2C;
  font-size: 16px;
}

.mvd-short {
     width: 200px;
  box-sizing: border-box;
  display: block;
  padding: 10px;
  margin: 8px 0 15px 0;
  border: 1px solid #9B2226;
  border-radius: 5px;
  background: #F6F1E9;
  color: #2C2C2C;
  font-size: 16px;
}

section {
  width: 90%;               /* or 100% if you want full screen */
  margin: 0 auto;
  text-align: left;         /* aligns labels and inputs naturally */
}
/* Make inputs/selects expand to section width */
section input[type="text"], section textarea,
section select {
  width: 650px;
  box-sizing: border-box;
  display: block;
  padding: 10px;
  margin: 8px 0 15px 0;
  border: 1px solid #9B2226;
  border-radius: 5px;
  background: #F6F1E9;
  color: #2C2C2C;
  font-size: 16px;
}

/* Label styling for neat alignment */
section label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
  color: #2C2C2C;
}


/* Input Fields */
input, select {
    display: block;
    margin: 10px auto;
    padding: 10px;
    width: 450px;
    border: 1px solid #9B2226;
    border-radius: 5px;
    font-size: 16px;
    background: #F6F1E9; /* Soft Beige */
    color: #2C2C2C; /* Dark Gray */
}

/* Text Area */
textarea {
     display: block;
    margin: 10px auto;
    padding: 10px;
    width: 480px;
    border: 1px solid #9B2226;
    border-radius: 5px;
    font-size: 16px;
    background: #F6F1E9; /* Soft Beige */
    color: #2C2C2C; /* Dark Gray */
}

/* Tables */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #F6F1E9; /* Soft Beige */
    border-radius: 5px;
}

th, td {
    border: 1px solid #9B2226;
    padding: 10px;
    text-align: center;
    color: #2C2C2C;
}

th {
    background-color: #E63946; /* Bright Vermilion */
    color: white;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: #9B2226; /* Vibrant Maroon */
    padding: 15px;
    color: white;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}

.custom-button {
    background-color: #ff9966;  /* Bright orange */
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.custom-button:hover {
    background-color: #e67300; /* Slightly darker orange */
    transform: scale(1.05);
}

.custom-bordered-table {
    border-top: 2px solid #e67300;
    border-bottom: 2px solid #e67300;
}

.uniform-column-table td:first-child,
.uniform-column-table th:first-child {
    width: 180px;  /* Adjust as needed */
    white-space: nowrap;
    vertical-align: middle;
}

.uniform-column-table td:nth-child(2),
.uniform-column-table th:nth-child(2) {
    width: 300px;  /* Adjust as needed */
    white-space: normal;
}



/* manual entry */

/* Custom table style */
.uniform-column-table {
    border-collapse: collapse;
    width: 100%;
}

.uniform-column-table th, .uniform-column-table td {
    padding: 10px;
    text-align: center;
    border: 2px solid #e67300; /* Table border color set to #e67300 */
}

.uniform-column-table td {
    background-color: white; /* Remove background color for table cells */
}

.uniform-column-table tr:nth-child(even) {
    background-color: white; /* No background color for even rows */
}

.uniform-column-table tr:hover {
    background-color: #f0f0f0; /* Hover effect */
}

/* Style for the first column in each row */
.uniform-column-table td:first-child {
    font-weight: bold;
}

/* Input Fields */
.uniform-column-table input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #e67300; /* Border color for input fields */
    border-radius: 5px;
}

/* Custom Button */
.custom-button {
    background-color: #ff9966; /* Button background color set to #ff9966 */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.custom-button:hover {
    background-color: #e67300; /* Button hover color set to #e67300 */
}

.profile-container {
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background-color: #003366;  /* Dark blue */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 160px;
}

.profile-dropdown a {
    display: block;
    padding: 8px;
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.profile-dropdown a:hover {
    background-color: #f0f0f0;
}

.profile-container:hover .profile-dropdown {
    display: block;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}
.switch-temple-btn {
    background-color: #003366;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.switch-temple-btn:hover {
    background-color: #0059b3;
}
.temple-profile {
    position: relative;
    display: inline-block;
}

.profile-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.temple-info-tab {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    width: 200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.temple-profile:hover .temple-info-tab {
    display: block;
}
.temple-profile {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-block;
    text-align: center;
}

.temple-avatar {
    width: 50px;
    height: 50px;
    background-color: #9b59b6;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.temple-dropdown {
    display: none;
    margin-top: 5px;
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 8px;
}

.temple-profile:hover .temple-dropdown {
    display: block;
}

.temple-name {
    font-weight: bold;
    margin-bottom: 10px;
}
.switch-button {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
.switch-button:hover {
    background-color: #e67e22;
}


/* Reusable Components */
.btn-primary {
  @apply bg-primary text-white px-4 py-2 rounded hover:bg-blue-800 transition;
}

.btn-accent {
  @apply bg-accent text-white px-4 py-2 rounded hover:bg-purple-700 transition;
}

.card {
  @apply bg-card shadow-md rounded-lg p-4;
}

.section-title {
  @apply text-lg font-semibold text-primary mb-2 font-heading;
}

.navbar {
  @apply flex justify-between items-center px-6 py-3 bg-primary text-white shadow-lg;
}

.nav-link {
  @apply px-3 py-2 rounded hover:bg-blue-800 transition;
}

.nav-link.active {
  @apply bg-secondary text-white;
}
