/* Main Stylesheet */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--gray-900);
    background-color: var(--gray-50);
    letter-spacing: -0.01em;
}

main {
    flex: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.material-card {
    cursor: pointer;
    background: white;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s;
}

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

.material-card:active {
    transform: translateY(0);
}

/* Feature Icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

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

/* Footer */
footer {
    margin-top: auto;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Sticky Elements */
.sticky-top {
    position: sticky;
    z-index: 1020;
}

/* Color Picker */
.color-picker-container {
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: 8px;
}

.color-swatches {
    min-height: 50px;
}

.color-swatch {
    background-color: white;
    transition: all 0.2s;
}

.color-swatch:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-control-color {
    width: 60px;
    height: 40px;
    border-radius: 4px;
}

.color-swatch .btn-link {
    text-decoration: none;
    font-size: 0.875rem;
}

.color-swatch .btn-link:hover {
    text-decoration: none;
}
