/* shadcn/ui inspired design with Bootstrap 5 */

:root {
    /* Colors based on shadcn/ui */
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 240 5.9% 10%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
}

* {
    border-color: hsl(var(--border));
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove Bootstrap gradients and shadows */
.navbar {
    background-color: hsl(var(--background)) !important;
    border-bottom: 1px solid hsl(var(--border));
    box-shadow: none !important;
    padding: 0.75rem 0;
}

.navbar-brand {
    color: hsl(var(--foreground)) !important;
    font-size: 1rem !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.25rem;
}

/* Hero section - minimal style */
.hero-section {
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 3rem 0;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.hero-section h1 i {
    display: none;
}

.hero-section .lead {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-section .col-auto {
    padding: 0 1rem;
}

.hero-section .d-flex {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.hero-section i {
    color: hsl(var(--foreground));
}

/* Cards - minimal design */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    transition: none;
}

.card:hover {
    transform: none;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid hsl(var(--border));
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Navigation tabs - shadcn style */
.nav-pills {
    background: hsl(var(--muted));
    padding: 0.25rem;
    border-radius: var(--radius);
    gap: 0.25rem;
}

.nav-pills .nav-link {
    background: transparent;
    color: hsl(var(--muted-foreground));
    border-radius: calc(var(--radius) - 2px);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    margin: 0;
    transition: all 0.15s ease;
}

.nav-pills .nav-link:hover {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

.nav-pills .nav-link.active {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.nav-pills .nav-link i {
    font-size: 1rem;
    margin-right: 0.25rem;
}

/* Forms - minimal input style */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.form-label i {
    display: none;
}

.form-control,
.form-select {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: hsl(var(--ring));
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring)) !important;
}

.form-control::placeholder {
    color: hsl(var(--muted-foreground));
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.form-text {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* Buttons - shadcn style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    height: 2.5rem;
    padding: 0 1rem;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    border-color: hsl(var(--primary) / 0.9);
    transform: none;
    box-shadow: none;
}

.btn-success {
    background: hsl(142 76% 36%);
    color: white;
    border-color: hsl(142 76% 36%);
}

.btn-success:hover {
    background: hsl(142 76% 30%);
    border-color: hsl(142 76% 30%);
    transform: none;
    box-shadow: none;
}

/* Button group for downloads */
.btn-group {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    margin: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    border-left: 1px solid rgba(255,255,255,0.2);
}

.btn-outline-light {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.btn-outline-light:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
}

.btn-lg {
    height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 0.875rem;
}

.btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.btn-sm {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
}

/* Badge */
.badge {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.bg-success {
    background: hsl(142 76% 36%) !important;
    color: white;
}

/* Result section */
#result {
    animation: fadeIn 0.3s ease;
}

#result .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    display: flex;
    align-items: center;
}

#result .card-title i {
    color: hsl(142 76% 36%);
    margin-right: 0.5rem;
}

/* QR Code display */
#qr-container img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    background: white;
}

/* Bulk QR codes */
#bulk-container .qr-item {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    transition: none;
}

#bulk-container .qr-item:hover {
    transform: none;
    box-shadow: none;
    border-color: hsl(var(--muted-foreground) / 0.3);
}

#bulk-container .qr-item img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 2px);
}

#bulk-container .qr-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--border));
    word-break: break-all;
}

/* Feature cards */
.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: hsl(var(--muted));
}

.feature-icon i {
    font-size: 1.5rem;
    color: hsl(var(--foreground));
}

/* Footer */
footer {
    background: hsl(var(--background)) !important;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    padding: 2rem 0;
}

footer a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 0.15s ease;
}

footer a:hover {
    color: hsl(var(--primary));
    text-decoration: underline;
}

/* Loading modal */
.modal-content {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 50px -10px rgb(0 0 0 / 0.1);
}

.modal-body {
    padding: 2rem;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 2px;
    border-color: hsl(var(--muted));
    border-right-color: hsl(var(--primary));
}

/* Alert */
.alert {
    border-radius: var(--radius);
    border: 1px solid;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
    border-color: hsl(var(--destructive) / 0.2);
}

/* Remove all unnecessary shadows and effects */
* {
    box-shadow: none !important;
}

.shadow-sm {
    box-shadow: none !important;
}

.shadow-lg {
    box-shadow: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .nav-pills .nav-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .nav-pills .nav-link span {
        display: none !important;
    }

    .card-body {
        padding: 1rem;
    }

    #qr-container img {
        max-width: 250px;
    }
}

/* Custom scrollbar - minimal */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--muted));
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground));
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Container adjustments */
.container {
    max-width: 1100px;
}

.container-fluid {
    background: hsl(var(--background));
}

/* Section spacing */
.my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Typography adjustments */
h1, h2, h3, h4, h5, h6 {
    color: hsl(var(--foreground));
    font-weight: 600;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.875rem;
}

p {
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
}