/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette - Elegant & Corporate */
    --primary-color: #2c5f2d;
    /* Deep Forest Green */
    --secondary-color: #97bc62;
    /* Soft Green */
    --accent-color: #d4a373;
    /* Earthy Gold */
    --background-color: #f8f9fa;
    /* Classic Off-White */
    --text-color: #333333;
    /* Dark Gray */
    --light-text: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: white;
    /* Changed to white for better contrast */
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: white;
    /* Changed to white for better contrast on green bg */
    font-weight: 700;
}

/* Custom Card Styling */
.card-custom {
    background: white;
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom h2,
.card-custom h3,
.card-custom h5 {
    color: var(--primary-color);
}

.card-custom:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
    border-bottom: none;
}

.card-header-custom h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.card-header-custom p {
    font-weight: 300;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Form Elements */
.form-control-custom {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(151, 188, 98, 0.2);
}

.form-label-custom {
    font-weight: 600;
    color: var(--primary-color);
    /* Keep dark/colored inside white card */
    margin-bottom: 8px;
    display: block;
}

.text-muted {
    color: #6c757d !important;
    /* Ensure muted text is visible on white card */
}

.btn-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.btn-custom:hover {
    background-color: #1e4220;
    transform: scale(1.02);
    color: white;
}

/* Logo Styling */
.logo-container {
    text-align: center;
    /* margin-bottom handled by utility classes */
}

.logo-img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Layout Utilities */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    /* background: url('/img/flower-bg-pattern.png') repeat; */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
}

.main-container main {
    width: 100%;
    max-width: 960px;
    /* Optimal width for form focus */
}

/* Datepicker Customization */
.ui-datepicker {
    font-family: 'Montserrat', sans-serif !important;
    border-radius: var(--border-radius) !important;
    border: none !important;
    box-shadow: var(--box-shadow) !important;
}



/* Admin Panel Styles */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white !important;
    font-weight: 500;
}

.navbar-custom .nav-link:hover {
    opacity: 0.9;
}

.table-custom {
    background: white;
    border-radius: 8px;
    /* overflow: hidden; Removed to allow dropdowns to overflow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-custom thead {
    background-color: var(--primary-color);
    color: white;
}

.table-custom th,
.table-custom td {
    vertical-align: middle;
    padding: 1rem;
}

.btn-action {
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-detail {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.btn-detail:hover {
    background-color: #c08b5c;
    color: white;
}

/* Print Layout Fixes */
.print-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.print-label {
    font-weight: bold;
    min-width: 120px;
    /* Fixed width for labels */
    color: var(--text-color);
}

.print-value {
    color: #000;
}
