/* css/style.css */
:root {
    --bs-primary: #005f73;
    --bs-primary-rgb: 0, 95, 115;
    --bs-success: #0a9396;
    --bs-success-rgb: 10, 147, 150;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', 'Meiryo', 'Yu Gothic', sans-serif;
}

.navbar-brand {
    font-weight: 700;
}

.nav-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.nav-card .icon {
    font-size: 3.5rem;
    color: var(--bs-success); /* Changed from #198754 */
    transition: transform 0.2s ease-in-out;
}

.nav-card:hover .icon {
    transform: scale(1.1);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: .75rem;
    background-color: var(--bs-primary) !important; /* Changed from #198754 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon .bi {
    font-size: 2rem;
    color: white;
}

.repeater-item {
    position: relative;
    padding: 1rem;
    /* padding-right: 50px; /* Space for remove button - Handled by Bootstrap grid */
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    margin-bottom: 1rem; /* Add margin between repeater items */
}

.repeater-item .btn-remove-item {
    /* position: absolute;
    top: 1rem;
    right: 1rem; */
    /* Using standard layout for better responsiveness */
}

.toast-container {
    z-index: 1100; /* Ensure toast is above other elements */
}

/* Custom styles for print preview */
.print-section .card-body pre {
    background-color: #e9ecef; /* Light gray background for code blocks */
    border: 1px solid #ced4da;
    padding: 0.5rem;
    border-radius: 0.25rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Styles merged from styles.css */

.message-list {
  margin-top: 1.5rem;
}

.message-list li {
  background-color: var(--bs-light);
  border: 1px solid var(--bs-secondary);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.25rem;
}

.message-list li p {
  margin: 0;
}

.message-success {
  background-color: rgba(var(--bs-success-rgb), 0.1) !important;
  border-color: var(--bs-success) !important;
}

.message-error {
  background-color: rgba(var(--bs-danger-rgb), 0.1) !important;
  border-color: var(--bs-danger) !important;
}

.message-warning {
  background-color: rgba(var(--bs-warning-rgb), 0.1) !important;
  border-color: var(--bs-warning) !important;
}

textarea {
  min-height: 120px;
}

.error {
  color: var(--bs-danger);
  margin-top: 0.5rem;
}

.form-section {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
}

/* Ad Placeholder Styles */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border: 1px dashed #ced4da;
    min-height: 100px;
    text-align: center;
    border-radius: 0.25rem;
}

/* Print-specific styles */
@media print {
    /* Force browsers to print background colors and images */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* Hide non-essential elements during printing */
    header,
    footer,
    .ad-placeholder,
    .btn,
    .navbar-toggler {
        display: none !important;
    }

    /* Ensure main content uses full width */
    main, .container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
}

/* --- Responsive Styles for Small Screens --- */
@media (max-width: 576px) {
    h1 {
        /* Reduce font size for main headings on small screens */
        font-size: 1.75rem;
    }

    .nav-card .icon {
        /* Reduce icon size on small screens */
        font-size: 3rem;
    }

    footer .nav-link {
        /* Add more vertical padding to footer links to make them easier to tap */
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .form-section {
        /* Reduce padding on small screens to give more space to content */
        padding: 1.5rem;
    }
}
