﻿/* Additional component styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

    .btn-primary:hover {
        opacity: 0.9;
        color: var(--primary-foreground);
    }

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-color: var(--border);
}

    .btn-secondary:hover {
        background-color: var(--accent);
        color: var(--accent-foreground);
    }

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

    .btn-ghost:hover {
        background-color: var(--accent);
        color: var(--accent-foreground);
    }

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}

    .btn-destructive:hover {
        opacity: 0.9;
        color: var(--destructive-foreground);
    }

.input {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--input-background);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.15s ease;
}

    .input:focus {
        border-color: var(--ring);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    }

.card {
    background-color: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-content {
    padding: 1.5rem;
}

.select {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--input-background);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
}

.textarea {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--input-background);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    resize: vertical;
}

.checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
}

.radio {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}

.header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility classes for better layout */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.space-x-1 > * + * {
    margin-left: 0.25rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

.w-full {
    width: 100%;
}

.w-80 {
    width: 20rem;
}

.h-auto {
    height: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.ml-auto {
    margin-left: auto;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.rounded {
    border-radius: var(--radius);
}

.rounded-lg {
    border-radius: calc(var(--radius) * 1.5);
}

.border {
    border: 1px solid var(--border);
}

.border-b {
    border-bottom: 1px solid var(--border);
}

.border-t {
    border-top: 1px solid var(--border);
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.font-medium {
    font-weight: 500;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.min-w-0 {
    min-width: 0;
}

.flex-1 {
    flex: 1 1 0%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.block {
    display: block;
}

.overflow-y-auto {
    overflow-y: auto;
}

.max-h-64 {
    max-height: 16rem;
}

.-top-2 {
    top: -0.5rem;
}

.-right-2 {
    right: -0.5rem;
}

.top-full {
    top: 100%;
}

.right-0 {
    right: 0;
}

.z-50 {
    z-index: 50;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.bg-background {
    background-color: var(--background);
}

.bg-foreground {
    background-color: var(--foreground);
}

.text-foreground {
    color: var(--foreground);
}

.object-cover {
    object-fit: cover;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content - initially hidden */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0; /* aligns to right of parent */
    top: 100%; /* places below button */
    background-color: var(--background);
    min-width: 12rem; /* 192px */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    z-index: 50;
}

    /* Each item in dropdown */
    .dropdown-content li {
        list-style: none;
    }

        .dropdown-content li a,
        .dropdown-content li button {
            display: block;
            width: 100%;
            padding: 0.5rem 1rem;
            text-align: left;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--foreground);
            font-size: 0.875rem;
        }

            .dropdown-content li a:hover,
            .dropdown-content li button:hover {
                background-color: var(--accent);
                color: var(--accent-foreground);
            }

/* Show dropdown when parent has 'open' class */
.dropdown.open .dropdown-content {
    display: block;
}
