/* Base Styles */
/* Sticky footer styles */

/* style.css */
:root {
  --bs-primary: #F3941E;
  --bs-primary-rgb: 243, 148, 30;
  --bs-primary-bg-subtle: #FEF0DE;
  --bs-primary-border-subtle: #FDD9B5;
  --bs-primary-text-emphasis: #613C0C;
  --bs-link-color: #F3941E;
  --bs-link-hover-color: #D47D15;
}

/* Override Bootstrap primary color classes */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #F3941E;
  --bs-btn-border-color: #F3941E;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #E08517;
  --bs-btn-hover-border-color: #D47D15;
  --bs-btn-focus-shadow-rgb: 243, 148, 30;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #D47D15;
  --bs-btn-active-border-color: #C77514;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #F3941E;
  --bs-btn-disabled-border-color: #F3941E;
}

.bg-primary {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

.text-primary {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

.border-primary {
  --bs-border-opacity: 1;
  border-color: rgba(var(--bs-primary-rgb), var(--bs-border-opacity)) !important;
}

/* Alert customization */
.alert-primary {
  --bs-alert-color: #613C0C;
  --bs-alert-bg: #FEF0DE;
  --bs-alert-border-color: #FDD9B5;
}

/* Badge customization */
.badge.bg-primary {
  background-color: #F3941E !important;
}

/* Customize other elements that use primary color */
.nav-pills .nav-link.active {
  background-color: #F3941E;
}

.progress-bar {
  background-color: #F3941E;
}

/* Customize form controls */
.form-check-input:checked {
  background-color: #F3941E;
  border-color: #F3941E;
}

/* Pagination customization */
.page-item.active .page-link {
  background-color: #F3941E;
  border-color: #F3941E;
}

/* Customize dropdowns */
.dropdown-item.active, .dropdown-item:active {
  background-color: #F3941E;
}

/* Customize list group */
.list-group-item.active {
  background-color: #F3941E;
  border-color: #F3941E;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 0px;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background-color: #343a40;
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.social-links a {
    font-size: 1.25rem;
    text-decoration: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Form Styles */
.form-control {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* QR Code Result */
.qr-code-container {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.qr-code-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    background-color: #343a40;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.navbar-brand {
    color: white;
    font-weight: 600;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: white;
}

/* Alert Messages */
.alert {
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: white;
}

.table th, .table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

/* Card Styles */
.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-body {
    padding: 1.25rem;
}

/* Premium Features Box */
.premium-features {
    background-color: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    margin-top: 2rem;
}

.premium-features h3 {
    color: #28a745;
    margin-top: 0;
}

/* Utility Classes */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* QR Type Selector Styles */
.qr-type-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #dee2e6;
    height: 100%;
    border-radius: 8px !important;
}

.qr-type-card:hover {
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.cursor-pointer {
    cursor: pointer;
}

.qr-type-card.active {
    border-color: #F3941E;
    background-color: rgba(243, 148, 30, 0.05);
}

.qr-type-card.active .qr-type-icon,
.qr-type-card.active .card-title {
    color: #F3941E;
}

.qr-type-icon {
    color: #6c757d;
    transition: all 0.2s ease;
}

.card-title {
    font-size: 0.85rem;
    color: #495057;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* Make cards more compact on mobile */
@media (max-width: 576px) {
    .qr-type-card .card-body {
        padding: 0.5rem !important;
    }
    .card-title {
        font-size: 0.75rem;
    }
}

/* Modern Inputs & Selects */
.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    background-color: #f9fafb;
    transition: all 0.25s ease-in-out;
}

/* On focus */
.form-control:focus,
.form-select:focus {
    border-color: #F3941E;
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(243, 148, 30, 0.25);
}

/* Placeholder style */
.form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
}

/* Disabled state */
.form-control:disabled,
.form-select:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Floating label style */
.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 12px;
    padding: 1rem 1rem 0.25rem 1rem;
}

.form-floating label {
    padding: 0.5rem 1rem;
    color: #6c757d;
}

.qr-type-card.active {
    border: 2px solid #F3941E;
    box-shadow: 0 0 10px rgba(243, 148, 30, 0.5);
}

/* Links */
a {
    color: var(--bs-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--bs-link-hover-color);
    text-decoration: underline;
}

/* Custom focus styles */
:focus-visible {
    outline: 2px solid #F3941E;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #F3941E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D47D15;
}