/* Valentine's Day Theme - Love is in the air! 💕 */
.theme-valentine {
    --primary-color: #db2777;
    background: linear-gradient(135deg, #ff6b9d 0%, #c2185b 50%, #e91e63 100%) !important;
    color: #ffffff !important;
    min-height: 100vh !important;
    position: relative;
}

/* Apply background to body when theme is active */
body.theme-valentine {
    background: linear-gradient(135deg, #ff6b9d 0%, #c2185b 50%, #e91e63 100%) !important;
    color: #ffffff !important;
    min-height: 100vh !important;
    position: relative;
}

/* Force page background to show gradient */
.theme-valentine,
.theme-valentine body,
.theme-valentine html,
html.theme-valentine,
body.theme-valentine main {
    background: linear-gradient(135deg, #ff6b9d 0%, #c2185b 50%, #e91e63 100%) !important;
    background-attachment: fixed !important;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    .theme-valentine,
    body.theme-valentine,
    html.theme-valentine {
        background: linear-gradient(135deg, #ff6b9d 0%, #c2185b 50%, #e91e63 100%) !important;
        background-attachment: scroll !important;
        background-size: cover !important;
    }
}

/* Ensure containers have transparent backgrounds */
.theme-valentine .container,
.theme-valentine .container-narrow,
.theme-valentine main,
.theme-valentine .py-2,
.theme-valentine .py-md-5,
.theme-valentine .py-4 {
    background: transparent !important;
}

/* Additional candy hearts in various locations */
.theme-valentine .container::before {
    content: '🤍';
    position: fixed;
    top: 30%;
    right: 12%;
    font-size: 24px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: gentle-float 8s ease-in-out infinite 2s;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.theme-valentine .container::after {
    content: '🤍';
    position: fixed;
    bottom: 15%;
    left: 10%;
    font-size: 26px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: gentle-float 9s ease-in-out infinite 3s;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Candy hearts scattered around */
.theme-valentine::before {
    content: '🤍';
    position: fixed;
    top: 10%;
    left: 5%;
    font-size: 32px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    animation: gentle-float 6s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.theme-valentine::after {
    content: '🤍';
    position: fixed;
    top: 70%;
    right: 8%;
    font-size: 28px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    animation: gentle-float 7s ease-in-out infinite 1s;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Cards with envelope-inspired styling */
.theme-valentine .card {
    background: linear-gradient(to bottom, #ffffff 0%, #fffbfc 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    position: relative;
    box-shadow:
        0 8px 24px rgba(219, 39, 119, 0.15),
        0 2px 8px rgba(219, 39, 119, 0.1) !important;
    backdrop-filter: blur(10px);
    z-index: 100;
    overflow: visible !important;
}

/* Remove the card decorations */
.theme-valentine .card::before,
.theme-valentine .card::after {
    content: none;
}

.theme-valentine .card-body {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

/* Form inputs with romantic styling */
.theme-valentine .form-control,
.theme-valentine .form-select,
.theme-valentine textarea {
    background: #ffffff !important;
    border: 2px solid #f9a8d4 !important;
    color: #4a1a2c !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(249, 168, 212, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.5) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

/* Smaller font size for date/time inputs to prevent overflow */
.theme-valentine .date-row-input,
.theme-valentine .time-row-input,
.theme-valentine .timezone-row-select,
.theme-valentine .duration-row-select,
.theme-valentine input[type="date"],
.theme-valentine input[type="time"],
.theme-valentine #futurePeriodType,
.theme-valentine #hideOptionLeadHoursContainer {
    font-size: 14px !important;
}

/* Compact inline selects need a smaller border-radius to avoid clipping text/arrow */
.theme-valentine #futurePeriodType,
.theme-valentine #hideOptionLeadHoursContainer {
    border-radius: 6px !important;
}

.theme-valentine .form-control:focus,
.theme-valentine .form-select:focus,
.theme-valentine textarea:focus {
    border-color: #ec4899 !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15), 0 4px 12px rgba(236, 72, 153, 0.2) !important;
    outline: none !important;
}

/* Specific styling for form title input */
.theme-valentine #formTitle,
.theme-valentine input[name="title"] {
    background: #ffffff !important;
    border: 2px solid #f9a8d4 !important;
    color: #4a1a2c !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(249, 168, 212, 0.2) !important;
    font-weight: 600 !important;
}

/* Ensure all option inputs are visible */
.theme-valentine .option-input,
.theme-valentine input[name="options[]"],
.theme-valentine input[name="field_labels[]"],
.theme-valentine input[name="second_question_options[]"],
.theme-valentine .additional-question-item input,
.theme-valentine .additional-question-section input[type="text"],
.theme-valentine .additional-question-body input[type="text"],
.theme-valentine input[name="creator_email"],
.theme-valentine input[type="email"],
.theme-valentine input[name="name"],
.theme-valentine input[id="responder_name"],
.theme-valentine input[id="responder_email"],
.theme-valentine input[name="comment_help_text"],
.theme-valentine input[name="name_field_label"],
.theme-valentine input[name="email_field_label"] {
    background: #ffffff !important;
    border: 2px solid #f9a8d4 !important;
    color: #4a1a2c !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(249, 168, 212, 0.2) !important;
    font-weight: 500 !important;
}

/* Editable inline fields */
.theme-valentine .editable-field,
.theme-valentine .editable-field-inline {
    background: #ffffff !important;
    color: #4a1a2c !important;
    border-color: #f9a8d4 !important;
}

.theme-valentine .editable-field:hover,
.theme-valentine .editable-field-inline:hover {
    border-color: #ec4899 !important;
    background: #fff !important;
}

/* Buttons - Valentine's pink with heart */
.theme-valentine .btn-primary,
.theme-valentine button[type="submit"].btn-lg {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative;
}

/* Replace checkmark icons with heart in primary buttons and form submit buttons */
.theme-valentine .btn-primary .bi-check-circle::before,
.theme-valentine .btn-primary .bi-check::before,
.theme-valentine button[type="submit"] .bi-check-circle::before,
.theme-valentine button[type="submit"] .bi-check::before {
    content: "😍";
    font-style: normal;
    font-size: 1.2em;
    display: inline-block;
    transition: transform 0.3s ease;
}

.theme-valentine .btn-primary .bi-check-circle,
.theme-valentine .btn-primary .bi-check,
.theme-valentine button[type="submit"] .bi-check-circle,
.theme-valentine button[type="submit"] .bi-check {
    font-style: normal;
}

.theme-valentine .btn-primary:hover,
.theme-valentine button[type="submit"]:hover {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%) !important;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.theme-valentine .btn-primary:hover .bi-check-circle::before,
.theme-valentine .btn-primary:hover .bi-check::before,
.theme-valentine button[type="submit"]:hover .bi-check-circle::before,
.theme-valentine button[type="submit"]:hover .bi-check::before {
    transform: scale(1.3) rotate(5deg);
}

.theme-valentine .btn-primary:active {
    background: linear-gradient(135deg, #9f1239 0%, #be185d 100%) !important;
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.3) !important;
    transform: translateY(0) scale(0.95);
    transition: all 0.1s ease !important;
}

/* Specific override for submit button to prevent teal color from styles.css */
.theme-valentine #submitBtn:hover {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%) !important;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

/* Outline primary buttons (like "Pick an option for me") */
.theme-valentine .btn-outline-primary {
    background: transparent !important;
    border: 2px solid #db2777 !important;
    color: #db2777 !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
}

/* Small icon-only buttons - reduce padding */
.theme-valentine .btn-outline-primary.btn-sm,
.theme-valentine .btn-outline-secondary.btn-sm {
    padding: 0.25rem 0.4rem !important;
    min-width: auto !important;
}

.theme-valentine .btn-outline-primary:hover {
    background: #fce7f3 !important;
    border-color: #be185d !important;
    color: #be185d !important;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4) !important;
    transform: translateY(-2px);
}

.theme-valentine .btn-outline-primary:hover .bi {
    color: #be185d !important;
}

.theme-valentine .btn-outline-primary:active {
    background: #fbcfe8 !important;
    border-color: #9f1239 !important;
    color: #9f1239 !important;
    transform: translateY(0);
}

/* Icons inside outline-primary buttons should be pink (not white) when NOT selected */
.theme-valentine .btn-outline-primary .bi {
    color: #db2777 !important;
}

/* Active/Checked state for button toggle groups */
.theme-valentine .btn-check:checked + .btn-outline-primary,
.theme-valentine .btn-outline-primary.active {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%) !important;
    border-color: #db2777 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(219, 39, 119, 0.5), inset 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    font-weight: 700 !important;
}

/* Icons inside active/checked buttons should be white */
.theme-valentine .btn-check:checked + .btn-outline-primary .bi,
.theme-valentine .btn-outline-primary.active .bi {
    color: #ffffff !important;
}

/* Secondary buttons */
.theme-valentine .btn-secondary {
    background: #fce7f3 !important;
    border: 2px solid #f9a8d4 !important;
    color: #db2777 !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

.theme-valentine .btn-outline-secondary {
    background: transparent !important;
    border: 2px solid #db2777 !important;
    color: #db2777 !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.theme-valentine .btn-secondary:hover {
    background: #fbcfe8 !important;
    border-color: #ec4899 !important;
    color: #be185d !important;
}

.theme-valentine .btn-outline-secondary:hover {
    background: #fce7f3 !important;
    border-color: #be185d !important;
    color: #be185d !important;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4) !important;
    transform: translateY(-2px);
}

.theme-valentine .btn-outline-secondary:hover .bi {
    color: #be185d !important;
}

.theme-valentine .btn-outline-secondary:active {
    background: #fbcfe8 !important;
    border-color: #9f1239 !important;
    color: #9f1239 !important;
    transform: translateY(0);
}

/* Danger/Delete buttons */
.theme-valentine .btn-danger,
.theme-valentine .btn-outline-danger {
    background: #fecdd3 !important;
    border: 2px solid #fda4af !important;
    color: #9f1239 !important;
}

.theme-valentine .btn-danger:hover,
.theme-valentine .btn-outline-danger:hover {
    background: #fca5a5 !important;
    border-color: #f87171 !important;
}

/* Success buttons */
.theme-valentine .btn-success {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.theme-valentine .btn-success:hover {
    background: linear-gradient(135deg, #be185d 0%, #db2777 100%) !important;
    box-shadow: 0 6px 20px rgba(219, 39, 119, 0.4) !important;
    transform: translateY(-2px);
}

.theme-valentine .btn-success:active,
.theme-valentine .btn-success.active {
    background: linear-gradient(135deg, #9f1239 0%, #be185d 100%) !important;
    box-shadow: 0 2px 8px rgba(219, 39, 119, 0.3) !important;
    transform: translateY(0);
}

/* Replace check icons with hearts in success buttons */
.theme-valentine .btn-success .bi-check-circle::before,
.theme-valentine .btn-success .bi-check::before {
    content: "❤️";
}

.theme-valentine .btn-success .bi-check-circle,
.theme-valentine .btn-success .bi-check {
    font-style: normal;
}

/* Option labels (radio/checkbox items) */
.theme-valentine .list-group-item,
.theme-valentine label.list-group-item {
    background: #ffffff !important;
    border: 2px solid #fbcfe8 !important;
    border-left: 4px solid #ec4899 !important;
    border-radius: 10px !important;
    color: #4a1a2c !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.1) !important;
}

.theme-valentine .list-group-item:hover,
.theme-valentine label.list-group-item:hover {
    border-color: #f9a8d4 !important;
    border-left-color: #db2777 !important;
    background: #fef7fb !important;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15) !important;
    transform: translateX(4px);
}

/* Disabled/taken options */
.theme-valentine .list-group-item.disabled,
.theme-valentine label.list-group-item.disabled {
    background: #fce7f3 !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.theme-valentine .list-group-item.disabled:hover,
.theme-valentine label.list-group-item.disabled:hover {
    transform: none !important;
}

/* Radio inputs - keep as circles */
.theme-valentine .form-check-input[type="radio"] {
    border: 2px solid #db2777 !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: 0 !important;
    background-color: #ffffff !important;
    vertical-align: middle !important;
    transform: translateY(0) !important;
}

.theme-valentine .form-check-input[type="radio"]:checked {
    background-color: #ec4899 !important;
    border-color: #db2777 !important;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.4) !important;
    background-image: none !important;
}

/* All checkboxes - pink backgrounds and borders when checked */
.theme-valentine .form-check-input[type="checkbox"] {
    border-color: #db2777 !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    transform: translateY(0) !important;
}

.theme-valentine .form-check-input[type="checkbox"]:checked {
    background-color: #ec4899 !important;
    border-color: #db2777 !important;
}

/* Multi-select checkboxes on respond page - square shape */
.theme-valentine .list-group-item .form-check-input[type="checkbox"] {
    border-radius: 4px !important;
}



/* Labels and headings */
.theme-valentine h1,
.theme-valentine h2,
.theme-valentine h3,
.theme-valentine h4,
.theme-valentine h5,
.theme-valentine h6 {
    color: #db2777 !important;
    font-weight: 700 !important;
}

.theme-valentine .form-label,
.theme-valentine label:not(.list-group-item):not(.form-check-label) {
    color: #be185d !important;
    font-weight: 600 !important;
}

.theme-valentine .form-check-label {
    color: #4a1a2c !important;
    font-weight: 500 !important;
    margin-left: 0 !important;
}

/* Small labels (like "Show View on Map link") need spacing */
.theme-valentine .form-check-label.small {
    margin-left: 0.5rem !important;
}

/* Additional questions section styling */
.theme-valentine .additional-question-section .card,
.theme-valentine .additional-question-item,
.theme-valentine #newAdditionalQuestionsContainer .card {
    background: linear-gradient(to bottom, #ffffff 0%, #fef7fb 100%) !important;
    border: 2px solid #fbcfe8 !important;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.12) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
}

.theme-valentine .additional-question-section .card-body,
.theme-valentine .additional-question-item .card-body {
    background: transparent !important;
    color: #4a1a2c !important;
}

.theme-valentine .additional-question-section .form-label,
.theme-valentine .additional-question-section .fw-semibold,
.theme-valentine .additional-question-section h6 {
    color: #db2777 !important;
    font-weight: 700 !important;
}

/* Fix vertical alignment of larger radio/checkbox inputs everywhere (excludes toggle switches) */
.theme-valentine .form-check:not(.form-switch) {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.theme-valentine .form-check:not(.form-switch) .form-check-input {
    margin-top: 0 !important;
    flex-shrink: 0 !important;
}

.theme-valentine .form-check:not(.form-switch) .form-check-label {
    margin-bottom: 0 !important;
}
/* Preserve inline-block display when Bootstrap d-inline-block is used (e.g. Silent Save checkbox) */
.theme-valentine .form-check.d-inline-block:not(.form-switch) {
    display: inline-flex !important;
}

/* Text elements */
.theme-valentine p,
.theme-valentine .text-muted {
    color: #831843 !important;
}

.theme-valentine small.text-muted {
    color: #9f1239 !important;
}

/* White text on gradient background (outside cards) */
.theme-valentine > p,
.theme-valentine > .text-muted,
body.theme-valentine > p,
body.theme-valentine > .text-muted {
    color: #ffffff !important;
}

/* Alerts */
.theme-valentine .alert {
    border-radius: 10px !important;
    border: 2px solid #fbcfe8 !important;
}

.theme-valentine .alert-info {
    background: #fef7fb !important;
    color: #831843 !important;
    border-color: #f9a8d4 !important;
}

.theme-valentine .alert-success {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #86efac !important;
}

.theme-valentine .alert-danger {
    background: #fef2f2 !important;
    color: #9f1239 !important;
    border-color: #fecdd3 !important;
}

/* Links */
.theme-valentine a {
    color: #db2777 !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.theme-valentine a:hover {
    color: #be185d !important;
    text-decoration: underline;
}

/* Payment buttons - preserve their brand colors */
.theme-valentine a.payment-btn,
.theme-valentine .payment-btn {
    color: white !important;
}

.theme-valentine a.payment-btn:hover,
.theme-valentine .payment-btn:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Badges */
.theme-valentine .badge {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600;
    padding: 6px 12px;
}

/* Tables */
.theme-valentine .table {
    background: #ffffff !important;
    border-radius: 10px;
    overflow: hidden;
}

.theme-valentine .table thead {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%) !important;
    color: #831843 !important;
}

.theme-valentine .table tbody tr {
    border-bottom: 1px solid #fbcfe8 !important;
}

.theme-valentine .table tbody tr:hover {
    background: #fef7fb !important;
}

/* Modals */
.theme-valentine .modal-content {
    background: linear-gradient(to bottom, #ffffff 0%, #fffbfc 100%) !important;
    border: 2px solid #f9a8d4 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(219, 39, 119, 0.2) !important;
}

.theme-valentine .modal-header {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%) !important;
    border-bottom: 2px solid #f9a8d4 !important;
    border-radius: 10px 10px 0 0 !important;
}

.theme-valentine .modal-title {
    color: #db2777 !important;
}

/* Navbar */
.theme-valentine .navbar {
    background: linear-gradient(135deg, #be185d 0%, #db2777 100%) !important;
    border-bottom: 3px solid #881337 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.theme-valentine .navbar-brand,
.theme-valentine .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.theme-valentine .nav-link:hover {
    color: #fce7f3 !important;
}

/* Hamburger menu toggle */
.theme-valentine .navbar-toggler {
    border-color: #f9a8d4 !important;
    background: rgba(249, 168, 212, 0.1) !important;
}

.theme-valentine .navbar-toggler:focus {
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4) !important;
}

.theme-valentine .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28249, 168, 212, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hide hamburger menu on respond pages with Valentine theme */
body.theme-valentine .navbar-toggler {
    display: none !important;
}

.theme-valentine .offcanvas {
    background: linear-gradient(135deg, #be185d 0%, #db2777 100%) !important;
    border-left: 3px solid #f9a8d4 !important;
    box-shadow: -4px 0 15px rgba(236, 72, 153, 0.3) !important;
}

.theme-valentine .offcanvas-header {
    border-bottom: 2px solid #f9a8d4 !important;
}

.theme-valentine .btn-close {
    filter: none !important;
    color: #ffffff !important;
    opacity: 0.8 !important;
}

.theme-valentine .btn-close:hover {
    opacity: 1 !important;
}

.theme-valentine .mobile-nav-section .btn {
    background: transparent !important;
    border: 2px solid #f9a8d4 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.theme-valentine .mobile-nav-section .btn:hover {
    background: rgba(249, 168, 212, 0.2) !important;
    border-color: #fce7f3 !important;
    box-shadow: none !important;
    transform: none !important;
}

.theme-valentine .offcanvas-body a,
.theme-valentine .offcanvas-body .nav-link {
    color: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.theme-valentine .offcanvas-body a:hover,
.theme-valentine .offcanvas-body .nav-link:hover {
    background: rgba(249, 168, 212, 0.2) !important;
    color: #fce7f3 !important;
}

/* Grasshopper logo styling - pink themed colors that revert to original on hover */
.theme-valentine .navbar-brand {
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.theme-valentine .navbar-brand:hover {
    text-decoration: none !important;
}

/* Logo image - solid pink that reverts to original on hover */
.theme-valentine .navbar-brand img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(50%) saturate(500%) hue-rotate(300deg) brightness(110%) contrast(100%) !important;
    transition: filter 0.3s ease !important;
    opacity: 1 !important;
}

.theme-valentine .navbar-brand:hover img {
    filter: none !important;
}

/* "grasshopper" text - pink that reverts to white on hover */
.theme-valentine .brand-text-primary {
    color: #f9a8d4 !important;
    transition: color 0.3s ease !important;
}

.theme-valentine .navbar-brand:hover .brand-text-primary {
    color: #ffffff !important;
}

/* "signup" text - EXACT same pink as icon, reverts to teal on hover */
.theme-valentine .brand-text-white {
    color: #f472b6 !important;
    transition: color 0.3s ease !important;
    opacity: 1 !important;
}

.theme-valentine .navbar-brand:hover .brand-text-white {
    color: #01A2B4 !important;
}

/* Make "Signup" text styled as button */
.theme-valentine .navbar .btn-outline-primary,
.theme-valentine .navbar a[href*="signup"] {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.theme-valentine .navbar .btn-outline-primary:hover,
.theme-valentine .navbar a[href*="signup"]:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px) !important;
}

/* Dropdowns */
.theme-valentine .dropdown-menu {
    background: #ffffff !important;
    border: 2px solid #f9a8d4 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2) !important;
}

.theme-valentine .dropdown-item {
    color: #4a1a2c !important;
}

.theme-valentine .dropdown-item:hover {
    background: #fef7fb !important;
    color: #db2777 !important;
}

/* Form validation */
.theme-valentine .is-invalid {
    border-color: #f87171 !important;
}

.theme-valentine .invalid-feedback {
    color: #dc2626 !important;
    font-weight: 600;
}

.theme-valentine .is-valid {
    border-color: #86efac !important;
}

.theme-valentine .valid-feedback {
    color: #16a34a !important;
}

/* Spinner */
.theme-valentine .spinner-border {
    color: #ec4899 !important;
    border-width: 3px;
}

/* Spinner inside buttons (submit, save) should be white for visibility */
.theme-valentine .btn .spinner-border,
.theme-valentine .btn-primary .spinner-border,
.theme-valentine button[type="submit"] .spinner-border {
    color: #ffffff !important;
}

/* Pagination */
.theme-valentine .pagination .page-link {
    background: #ffffff !important;
    border: 2px solid #fbcfe8 !important;
    color: #db2777 !important;
    margin: 0 4px;
    border-radius: 8px !important;
}

.theme-valentine .pagination .page-link:hover {
    background: #fef7fb !important;
    border-color: #f9a8d4 !important;
}

.theme-valentine .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%) !important;
    border-color: #db2777 !important;
    color: #ffffff !important;
}

/* Tooltips */
.theme-valentine .tooltip-inner {
    background: #db2777 !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
}

/* Progress bars */
.theme-valentine .progress {
    background: #fce7f3 !important;
    border-radius: 10px;
}

.theme-valentine .progress-bar {
    background: linear-gradient(90deg, #db2777 0%, #ec4899 100%) !important;
}

/* Custom scrollbar for webkit browsers */
.theme-valentine ::-webkit-scrollbar {
    width: 12px;
}

.theme-valentine ::-webkit-scrollbar-track {
    background: #fce7f3;
    border-radius: 10px;
}

.theme-valentine ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%);
    border-radius: 10px;
}

.theme-valentine ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
}

/* Accessibility - maintain focus visibility */
.theme-valentine *:focus-visible {
    outline: 3px solid #ec4899 !important;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .theme-valentine {
        background: #ffffff !important;
    }

    .theme-valentine .card {
        border: 2px solid #4a1a2c !important;
        box-shadow: none !important;
    }
}

/* Form preview page specific fixes */
.theme-valentine .form-preview-header,
.theme-valentine .preview-controls {
    color: #ffffff !important;
}

.theme-valentine .preview-controls h1,
.theme-valentine .preview-controls h2,
.theme-valentine .preview-controls h3,
.theme-valentine .preview-controls h4 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Specifically target the main heading (but not inside cards) */
.theme-valentine main > h1,
.theme-valentine main > h2,
.theme-valentine main > .container h1:first-child,
.theme-valentine main > .container-narrow h1:first-child,
.theme-valentine .container > h1:first-child:not(.card *),
.theme-valentine .container-narrow > h1:first-child:not(.card *) {
    color: #ffffff !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

/* Headings inside cards should stay pink - must override white heading rules */
.theme-valentine .card h1,
.theme-valentine .card h2,
.theme-valentine .card h3,
.theme-valentine .card .card-title,
.theme-valentine .card-body h1,
.theme-valentine .card-body h2,
.theme-valentine .card-body h3,
.theme-valentine .container .card h1,
.theme-valentine .container .card .card-title,
.theme-valentine .container .card h1.card-title,
.theme-valentine .card h1.card-title.h3 {
    color: #db2777 !important;
    text-shadow: none !important;
}

/* Card text and description should be a readable dark gray */
.theme-valentine .card-text,
.theme-valentine .description-content,
.theme-valentine .card p,
.theme-valentine .ql-editor {
    color: #4a5568 !important;
}

.theme-valentine .card-body p {
    color: #4a5568 !important;
}

/* Quick Preview and Quick Settings buttons - ONLY for form preview page with gradient background */
.theme-valentine .form-preview-wrapper .btn-outline-secondary,
.theme-valentine .form-preview-container .btn-outline-secondary {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.theme-valentine .form-preview-wrapper .btn-outline-secondary:hover,
.theme-valentine .form-preview-container .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Remove heart from Help button in form preview */
.theme-valentine .btn-outline-secondary::before {
    content: none !important;
}

/* Fix eye icon and settings icon visibility - make them visible on gradient background */
.theme-valentine .bi-eye,
.theme-valentine .bi-gear,
.theme-valentine .bi-gear-fill,
.theme-valentine .bi-sliders {
    color: #ffffff !important;
}

/* Inside cards, inherit text color so icons match surrounding labels (e.g. bi-calendar-range) */
.theme-valentine .card .bi-eye,
.theme-valentine .card .bi-gear,
.theme-valentine .card .bi-gear-fill,
.theme-valentine .card .bi-sliders {
    color: inherit !important;
}

/* Override teal icon colors with Valentine pink theme colors */
.theme-valentine i[style*="#01A2B4"],
.theme-valentine .bi-calendar-event-fill,
.theme-valentine .bi-calendar-check,
.theme-valentine .bi-bell-fill,
.theme-valentine .bi-check-circle-fill,
.theme-valentine .bi-clipboard-check,
.theme-valentine .bi-lightning-charge-fill {
    color: #db2777 !important;
}

/* Search icon in primary buttons should be white */
.theme-valentine .btn-primary .bi-search {
    color: #ffffff !important;
}

/* Make sure icon buttons are visible on gradient background */
.theme-valentine .btn-link,
.theme-valentine a.btn-link {
    color: #ffffff !important;
}

.theme-valentine .btn-link:hover,
.theme-valentine a.btn-link:hover {
    color: #fce7f3 !important;
}

/* Footer styling */
.theme-valentine footer,
.theme-valentine .footer {
    background: rgba(190, 24, 93, 0.3) !important;
    color: #ffffff !important;
}

.theme-valentine footer a,
.theme-valentine .footer a {
    color: #ffffff !important;
    font-weight: 500;
}

.theme-valentine footer a:hover,
.theme-valentine .footer a:hover {
    color: #fce7f3 !important;
}

.theme-valentine footer .text-muted,
.theme-valentine .footer .text-muted {
    color: #fce7f3 !important;
}

/* Footer icons - make them white */
.theme-valentine footer svg,
.theme-valentine footer i,
.theme-valentine footer .bi,
.theme-valentine .footer svg,
.theme-valentine .footer i,
.theme-valentine .footer .bi {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .theme-valentine .btn-primary {
        padding: 10px 20px !important;
    }

    .theme-valentine .card {
        border-radius: 10px !important;
    }

    .theme-valentine .list-group-item {
        margin-bottom: 8px !important;
    }
}

/* Gear icon override - use pink color instead of white text-color */
.theme-valentine .option-gear-btn i {
    color: #ff1493 !important;
    opacity: 0.9 !important;
}

.theme-valentine .option-gear-btn:hover i {
    color: #ff69b4 !important;
    opacity: 1 !important;
}

/* Field gear button (for dropdown fields) - use pink color */
.theme-valentine .field-gear-btn i {
    color: #db2777 !important;
}

.theme-valentine .field-gear-btn:hover i {
    color: #ec4899 !important;
}
