
/* Custom styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

.qr-preview {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Primary Button Styles */
.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

/* Small button style to match select height */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    border-width: 1px;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: visible;
}

/* Ensure the select element matches the button height */
.form-select-sm {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    border-width: 1px;
}

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

/* Indigo Button Styles */
.btn-indigo {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-indigo:hover {
    background-color: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
    color: white;
}

/* Card Styles */
.card {
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    background-color: white;
}

/* Form Control Styles */
.form-control {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.875rem;
}

/* Input Group Styles */
.input-group {
    border-radius: 0.75rem;
    overflow: hidden;
}

.input-group-text {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

/* Button Group Styles */
.btn-outline-secondary {
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    color: #64748b;
    transition: all 0.2s ease-in-out;
}

.btn-outline-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #334155;
}

/* Loader Animation */
.loader {
    border: 4px solid #f1f5f9;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ad Placeholder Styles */
.ad-placeholder {
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

/* History Card Styles */
.qr-history-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    overflow: hidden;
}

.qr-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Mode Button Styles */
.btn-mode {
    transition: all 0.2s ease-in-out;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    background-color: white;
    color: #64748b;
}

.btn-mode.active {
    border-color: #4f46e5;
    background-color: #f0f4ff;
    color: #4f46e5;
}

.btn-mode:hover {
    border-color: #818cf8;
    background-color: #f8fafc;
    transform: translateY(-1px);
}

/* Navbar Styles */
.navbar {
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    color: #4f46e5;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Form Select Styles */
.form-select {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.form-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.1);
}

/* Collapse Styles */
.collapse {
    transition: all 0.3s ease-in-out;
}

/* Text Colors */
.text-slate-400 {
    color: #94a3b8;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-800 {
    color: #1e293b;
}

/* Background Colors */
.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-slate-100 {
    background-color: #f1f5f9;
}

.bg-indigo-50 {
    background-color: #f0f4ff;
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

/* Border Colors */
.border-slate-200 {
    border-color: #e2e8f0;
}

.border-indigo-200 {
    border-color: #c7d2fe;
}

.border-indigo-300 {
    border-color: #a5b4fc;
}

.border-indigo-600 {
    border-color: #4f46e5;
}

/* Spacing Utilities */
.mb-5 {
    margin-bottom: 1.25rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

/* Custom Classes */
.text-uppercase {
    letter-spacing: 0.05em;
}

/* Transition Effects */
.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Focus Styles */
.focus:ring-2 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus:ring-indigo-500 {
    --tw-ring-color: rgba(79, 70, 229, 0.5);
}

/* Rounded Corners */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Shadow Effects */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Opacity */
.opacity-75 {
    opacity: 0.75;
}

.opacity-80 {
    opacity: 0.8;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Gap Utilities */
.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Width Utilities */
.w-full {
    width: 100%;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

/* Font Sizes */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

/* Font Weights */
.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-uppercase {
    text-transform: uppercase;
}

/* Hover Effects */
.hover\:border-indigo-300:hover {
    border-color: #a5b4fc;
}

.hover\:border-indigo-600:hover {
    border-color: #4f46e5;
}

.hover\:bg-indigo-50:hover {
    background-color: #f0f4ff;
}

.hover\:bg-slate-50:hover {
    background-color: #f8fafc;
}

/* Focus Effects */
.focus:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Min Height */
.min-h-\[200px\] {
    min-height: 200px;
}

.min-h-\[250px\] {
    min-height: 250px;
}

/* Color Palette Styles */
.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.rounded {
    border-radius: 0.25rem;
}

.border {
    border: 1px solid #e2e8f0;
}

.cursor-pointer {
    cursor: pointer;
}

/* Color Swatch Styles */
.bg-black {
    background-color: #000000;
}

.bg-gray-500 {
    background-color: #555555;
}

.bg-white {
    background-color: #ffffff;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-orange-500 {
    background-color: #f97316;
}

.bg-yellow-500 {
    background-color: #eab308;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-indigo-500 {
    background-color: #6366f1;
}

.bg-purple-500 {
    background-color: #a855f7;
}

.bg-pink-500 {
    background-color: #ec4899;
}

.bg-teal-500 {
    background-color: #14b8a6;
}

/* Background Color Palette */
.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-gray-300 {
    background-color: #d1d5db;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-green-100 {
    background-color: #d1fae5;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-yellow-100 {
    background-color: #fef3c7;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.bg-pink-100 {
    background-color: #fce7f3;
}

.bg-teal-100 {
    background-color: #ccfbf1;
}

/* Color Swatch Hover Effects */
#fg-color-palette div:hover,
#bg-color-palette div:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

/* Color Swatch Selection */
#fg-color-palette div.selected,
#bg-color-palette div.selected {
    border-color: #4f46e5;
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Color Input Group */
.d-flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-2 {
    gap: 0.5rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    inset: 0;
}

.opacity-0 {
    opacity: 0;
}

/* Flex Utilities */
.flex-wrap {
    flex-wrap: wrap;
}