/* Enhanced Professional Color Scheme */
:root {
    --primary-white: #ffffff;
    --soft-pink: #f3ccd1;
    --primary-pink: #d97a89;
    --brown: #6b4c3b;
    --accent-brown: #b57f65;
    --text-dark: #3b2f2f;
    --text-gray: #555555;
    --text-light: #888888;
    --border-light: #e8e8e8;
    --shadow-light: rgba(107, 76, 59, 0.1);
    --shadow-medium: rgba(107, 76, 59, 0.15);
    --shadow-strong: rgba(107, 76, 59, 0.25);
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --gradient-1: linear-gradient(135deg, var(--soft-pink) 0%, var(--primary-pink) 100%);
    --gradient-2: linear-gradient(135deg, var(--primary-white) 0%, var(--soft-pink) 50%, var(--accent-brown) 100%);
    --gradient-3: linear-gradient(135deg, var(--brown) 0%, var(--accent-brown) 100%);
    --gradient-4: linear-gradient(45deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    --gradient-5: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-danger: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(243, 204, 209, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(181, 127, 101, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Enhanced Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.splash-icon-container {
    position: relative;
    margin-bottom: 2rem;
}

.floating-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    color: var(--brown);
    opacity: 0.6;
    animation: floatAround 8s ease-in-out infinite;
}

.icon-1 {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.icon-2 {
    top: 50%;
    right: 0;
    animation-delay: 2s;
}

.icon-3 {
    bottom: 0;
    left: 50%;
    animation-delay: 4s;
}

.icon-4 {
    top: 50%;
    left: 0;
    animation-delay: 6s;
}

.main-splash-icon {
    position: relative;
    z-index: 2;
    background: var(--gradient-1);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(107, 76, 59, 0.3);
    animation: bounce 2s infinite;
}

.main-splash-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes floatAround {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(-10px) rotate(270deg); }
}

.splash-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-subtitle {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 3rem;
}

.splash-loader {
    width: 300px;
    height: 8px;
    background: rgba(107, 76, 59, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-3);
    border-radius: 4px;
    animation: loadProgress 5s ease-out forwards;
    box-shadow: 0 0 15px var(--primary-pink);
}

.loader-sparkle {
    position: absolute;
    top: -2px;
    left: 0;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #fff 0%, var(--primary-pink) 100%);
    border-radius: 50%;
    animation: sparkleMove 5s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-pink);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    opacity: 0.6;
}

.particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 40%; animation-delay: 3s; }
.particle:nth-child(3) { left: 60%; animation-delay: 6s; }
.particle:nth-child(4) { left: 80%; animation-delay: 9s; }
.particle:nth-child(5) { left: 10%; animation-delay: 12s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

@keyframes loadProgress {
    to {
        width: 100%;
    }
}

@keyframes sparkleMove {
    to {
        left: calc(100% - 12px);
    }
}

/* Main Application */
.main-app {
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Enhanced Header */
.header {
    background: var(--primary-white);
    padding: 3rem 2.5rem;
    border-radius: 25px;
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.header-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 204, 209, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.decoration-line {
    width: 100px;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 1px;
    animation: expandContract 3s ease-in-out infinite;
}

.decoration-dots {
    display: flex;
    gap: 15px;
}

.decoration-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-1);
    animation: pulse 2s infinite;
}

.decoration-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.decoration-dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes expandContract {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.5); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.app-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title-word {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: titleGlow 4s ease-in-out infinite;
}

.title-word:nth-child(2) {
    animation-delay: 2s;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.app-tagline {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: center;
    font-style: italic;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Enhanced Search Section */
.search-section {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--primary-white);
    border: 3px solid var(--border-light);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.search-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-pink);
    box-shadow: 0 12px 35px var(--shadow-medium);
    transform: translateY(-3px);
}

.search-input-wrapper:focus-within .search-glow {
    transform: scaleX(1);
}

.search-icon {
    color: var(--text-light);
    margin: 0 18px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--primary-pink);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 12px;
    color: var(--text-dark);
    background: transparent;
    font-weight: 400;
}

.filter-toggle {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 122, 137, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 122, 137, 0.4);
}

/* Enhanced Advanced Filters */
.advanced-filters {
    margin-top: 2rem;
    padding: 2.5rem;
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
    animation: slideDown 0.4s ease;
}

.filter-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.filter-header h3 {
    color: var(--brown);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.filter-group {
    position: relative;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--primary-white);
    color: var(--text-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(217, 122, 137, 0.1);
    transform: translateY(-1px);
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
    flex-wrap: wrap;
}

.sort-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.sort-select {
    padding: 12px 18px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--primary-white);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.95rem;
    min-width: 250px;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(217, 122, 137, 0.1);
}

/* Enhanced Quick Categories */
.quick-categories {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.categories-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 14px 28px;
    border: 2px solid var(--border-light);
    background: var(--primary-white);
    color: var(--text-dark);
    border-radius: 35px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.3s ease;
    z-index: -1;
}

.category-btn:hover::before {
    left: 0;
}

.category-btn:hover {
    color: white;
    border-color: var(--primary-pink);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.category-btn.active {
    background: var(--gradient-1);
    border-color: var(--primary-pink);
    color: white;
    box-shadow: 0 6px 20px rgba(217, 122, 137, 0.4);
}

.action-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-filter {
    padding: 14px 20px;
    border: 2px solid var(--border-light);
    border-radius: 18px;
    background: var(--primary-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
    font-weight: 500;
}

.status-filter:focus {
    border-color: var(--primary-pink);
    outline: none;
    transform: translateY(-1px);
}

.add-recipe-btn {
    background: var(--gradient-3);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 35px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(107, 76, 59, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.add-recipe-btn:hover .btn-glow {
    left: 100%;
}

.add-recipe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(107, 76, 59, 0.5);
}

/* Enhanced Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.recipe-card {
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.recipe-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-4);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-strong);
    border-color: var(--primary-pink);
}

.recipe-card:hover::before {
    transform: scaleX(1);
}

.recipe-card:hover::after {
    opacity: 0.1;
}

.recipe-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    position: relative;
}

.recipe-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.recipe-status {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.status-learning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.status-mastered {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.status-to-be-learnt {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

.recipe-rating {
    color: #ffc107;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.3));
}

.recipe-card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recipe-card:hover .recipe-card-actions {
    opacity: 1;
}

.action-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
}

.edit-action {
    background: var(--gradient-3);
    box-shadow: 0 2px 8px rgba(107, 76, 59, 0.3);
}

.edit-action:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(107, 76, 59, 0.4);
}

.delete-action {
    background: var(--gradient-danger);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.delete-action:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: var(--primary-white);
    margin: 2% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
    position: relative;
    z-index: 1001;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content.large {
    max-width: 900px;
}

.modal-content.small {
    max-width: 500px;
}

.modal-header {
    padding: 2.5rem 3rem;
    border-bottom: 2px solid var(--border-light);
    background: var(--gradient-1);
    color: white;
    border-radius: 25px 25px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-header.danger {
    background: var(--gradient-danger);
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 3;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* Enhanced Form Styles */
form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group.floating-label {
    position: relative;
}

.floating-label input {
    padding: 18px 16px 8px 16px;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 0.8rem;
    color: var(--primary-pink);
    transform: translateY(0);
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.floating-label input:focus ~ .input-highlight {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-light);
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--primary-white);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(217, 122, 137, 0.1);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.recipe-preview {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gradient-1);
    border-radius: 20px;
    margin-bottom: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.preview-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: bounce 2s infinite;
}

.recipe-preview h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    font-weight: 700;
}

.category-badge {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* File Input Styling */
.file-input-container {
    position: relative;
    margin-bottom: 1rem;
}

#recipePictures {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 3px dashed var(--border-light);
    border-radius: 15px;
    background: var(--primary-white);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.file-input-label:hover {
    border-color: var(--primary-pink);
    background: rgba(243, 204, 209, 0.05);
    color: var(--primary-pink);
}

.file-input-label i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Enhanced Notes Section */
.notes-section {
    margin: 3rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.notes-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.notes-header h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.notes-grid .full-width {
    grid-column: 1 / -1;
}

/* Enhanced Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 3rem;
    color: #ddd;
    transition: all 0.3s ease;
    margin-bottom: 0;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
    transform: scale(1.15);
}

/* Enhanced Image Preview */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.image-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.image-preview img:hover {
    transform: scale(1.05);
    border-color: var(--primary-pink);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

/* Enhanced Buttons */
.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(217, 122, 137, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover .btn-shine {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 122, 137, 0.4);
}

.btn-secondary {
    background: var(--primary-white);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
    padding: 16px 32px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: var(--soft-pink);
    border-color: var(--primary-pink);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.modal-body {
    padding: 3rem;
    text-align: center;
}

.delete-warning {
    background: rgba(220, 53, 69, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(220, 53, 69, 0.1);
    margin-bottom: 2rem;
}

.delete-warning i {
    font-size: 3rem;
    color: var(--danger);
    margin-bottom: 1rem;
}

.delete-warning p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.warning-text {
    color: var(--danger);
    font-weight: 600;
    font-size: 0.9rem;
}

.save-confirmation {
    background: rgba(40, 167, 69, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(40, 167, 69, 0.1);
    margin-bottom: 2rem;
}

.save-confirmation i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.save-confirmation p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 6rem 3rem;
    color: var(--text-light);
    grid-column: 1 / -1;
    background: var(--primary-white);
    border-radius: 25px;
    border: 3px dashed var(--border-light);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 204, 209, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.empty-state i {
    font-size: 6rem;
    margin-bottom: 2rem;
    color: var(--soft-pink);
    animation: pulse 3s infinite;
    position: relative;
    z-index: 2;
}

.empty-state h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.empty-state p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .splash-title {
        font-size: 2.8rem;
    }
    
    .app-title {
        font-size: 2.5rem;
    }
    
    .header {
        padding: 2.5rem 1.5rem;
    }
    
    .quick-categories {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .categories-container {
        justify-content: center;
    }
    
    .action-controls {
        justify-content: center;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .sort-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-content {
        margin: 3% auto;
        width: 95%;
    }
    
    form {
        padding: 2rem;
    }
    
    .modal-header {
        padding: 2rem;
    }
    
    .modal-body {
        padding: 2rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .filter-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-pink);
}
