/* CSS Variables for consistent theming */
:root {
    --primary-color: #7868E6;
    --secondary-color: #B8B5FF;
    --accent-color: #FFB4B4;
    --background-color: #EDEEF7;
    --surface-color: #E4FBFF;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #D1D5DB;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 6px 20px rgba(120, 104, 230, 0.25);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.4s ease;
    --ad-banner-height: 90px;
    
    /* Device Bars - Detectadas pelo managebar.js */
    --statusbar-height: 28px;
    --actionbar-height: 45px;
    --header-height: 80px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(184, 181, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 180, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(228, 251, 255, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--statusbar-height);
    padding-bottom: var(--actionbar-height);
}

/* Device Bars - Status Bar (topo) e Action Bar (fundo) */
.device-statusbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--statusbar-height);
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(120, 104, 230, 0.95) 100%);
    box-shadow: 0 2px 8px rgba(120, 104, 230, 0.2);
    z-index: 9999;
    pointer-events: none;
    transition: var(--transition-fast);
}

.device-actionbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--actionbar-height);
    background: linear-gradient(0deg, var(--primary-color) 0%, rgba(120, 104, 230, 0.95) 100%);
    box-shadow: 0 -2px 8px rgba(120, 104, 230, 0.2);
    z-index: 9999;
    pointer-events: none;
    transition: var(--transition-fast);
}

/* Espaçamento para iOS com safe area */
@supports (padding: max(0px)) {
    body {
        padding-top: max(var(--statusbar-height), env(safe-area-inset-top));
        padding-bottom: max(var(--actionbar-height), env(safe-area-inset-bottom));
    }
    
    .device-statusbar {
        height: max(var(--statusbar-height), env(safe-area-inset-top));
    }
    
    .device-actionbar {
        height: max(var(--actionbar-height), env(safe-area-inset-bottom));
    }
    
    .header {
        top: max(var(--statusbar-height), env(safe-area-inset-top));
    }
    
    .header--hidden {
        transform: translateY(calc(-100% - max(var(--statusbar-height), env(safe-area-inset-top))));
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
    position: fixed;
    top: var(--statusbar-height);
    left: 0;
    right: 0;
    z-index: 100;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.header--hidden {
    transform: translateY(calc(-100% - var(--statusbar-height)));
}

.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.header__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.header__logo:hover {
    transform: scale(1.05);
}

.header__text {
    display: inline-block;
}

.header__icon {
    font-size: 2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    transition: var(--transition);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger__line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger--active .hamburger__line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger--active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Navigation */
.header__nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-btn--active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.nav-btn__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    transition: var(--transition);
}

.nav-btn:hover .nav-btn__icon svg {
    transform: scale(1.1);
}

.nav-btn--active .nav-btn__icon svg {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

/* Main Content */
.main {
    flex: 1;
    padding: 2rem 0;
    margin-top: var(--header-height);
    transition: margin-top 0.3s ease-in-out;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    color: var(--text-light);
}

.loading__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Views */
.view {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.view--active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.view__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view__header > :last-child {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.view__header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background: #6B59D3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
}

.btn--secondary {
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background: #D1F5FF;
    transform: translateY(-1px);
}

.btn--help {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFEEB3 100%);
    color: #B8860B;
    border: 2px solid #FFD700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn--help:hover {
    background: linear-gradient(135deg, #FFEEB3 0%, #FFE380 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn--danger {
    background: var(--accent-color);
    color: white;
}

.btn--danger:hover {
    background: #FF9999;
    transform: translateY(-1px);
}

.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.btn__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    transition: var(--transition);
}

.btn--primary:hover .btn__icon svg {
    transform: rotate(90deg);
}

.btn--secondary:hover .btn__icon svg {
    transform: scale(1.15);
}

/* Filters */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.filters:hover {
    box-shadow: var(--shadow-medium);
}

.filters__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filters__label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.filters__select,
.filters__input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
}

.filters__select:focus,
.filters__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.1);
}

/* Toys Grid */
.toys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.toy-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: grab;
    position: relative;
    overflow: hidden;
}

.toy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.toy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.toy-card:hover::before {
    transform: scaleX(1);
}

.toy-card:active {
    cursor: grabbing;
    transform: translateY(-2px);
}

.toy-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.toy-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.toy-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.toy-card__age {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.toy-card__benefits {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    line-height: 1.5;
}

.toy-card__description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.toy-card__location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.toy-card__location svg {
    flex-shrink: 0;
}

.toy-card__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.toy-card__btn {
    padding: 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    position: relative;
    overflow: hidden;
}

.toy-card__btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: var(--transition-fast);
}

.toy-card__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.toy-card__btn:hover::before {
    transform: scale(1);
}

.toy-card__btn--edit {
    background: var(--surface-color);
    color: var(--primary-color);
}

.toy-card__btn--edit:hover {
    background: #B8E6FF;
    transform: scale(1.1);
}

.toy-card__btn--edit:hover svg {
    transform: rotate(-10deg);
}

.toy-card__btn--delete {
    background: var(--accent-color);
    color: white;
}

.toy-card__btn--delete:hover {
    background: #FF9999;
    transform: scale(1.1);
}

.toy-card__btn--delete:hover svg {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.toy-card__btn:active {
    transform: scale(0.95);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.empty-state__logo {
    width: 120px;
    height: auto;
    margin: 0 auto 2rem;
    opacity: 0.6;
    filter: grayscale(20%);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.empty-state__description {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.empty-state__hint {
    font-size: 0.938rem !important;
    color: var(--text-light) !important;
    font-style: italic;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

/* Empty State Benefits */
.empty-state__benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    border: 1px solid rgba(120, 104, 230, 0.1);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    stroke-width: 2;
}

.benefit-text {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* Button Large */
.btn--large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Button Icons */
.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--primary .btn-icon {
    color: white;
}

.btn--secondary .btn-icon {
    color: currentColor;
}

.btn--help .btn-icon {
    color: currentColor;
}

/* Rotation Calendar */
.rotation-calendar {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.rotation-list {
    display: grid;
    gap: 1rem;
}

.rotation-item {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.rotation-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(120, 104, 230, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rotation-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-hover);
}

.rotation-item:hover::after {
    opacity: 1;
}

.rotation-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rotation-item__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rotation-item__date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rotation-item__toys {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rotation-item__toy {
    background: var(--background-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.analytics-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.analytics-card__value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.analytics-card__chart {
    height: 150px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.modal--active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 540px;
    width: 90%;
    max-height: calc(90vh - var(--ad-banner-height));
    margin-bottom: var(--ad-banner-height);
    overflow: hidden;
    animation: slideIn 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(120, 104, 230, 0.1);
}

@keyframes slideIn {
    from { 
        transform: translateY(-20px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.modal__header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
}

.modal__header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal__header h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.modal__close {
    background: rgba(120, 104, 230, 0.08);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal__close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.modal__form {
    padding: 2rem 2rem 1.5rem;
    flex: 1;
    overflow-y: auto;
    background: white;
}

.modal__form::-webkit-scrollbar {
    width: 8px;
}

.modal__form::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

.modal__form::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal__form::-webkit-scrollbar-thumb:hover {
    background: #6B59D3;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

/* Form Help Icons & Tooltips */
.form-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    cursor: help;
    opacity: 0.7;
    transition: var(--transition-fast);
    position: relative;
    width: 18px;
    height: 18px;
}

.form-help-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
}

.form-help-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.form-help-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: var(--text-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.813rem;
    white-space: normal;
    width: 250px;
    max-width: 80vw;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    line-height: 1.4;
    font-weight: 400;
}

.form-help-icon::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    border: 6px solid transparent;
    border-top-color: var(--text-color);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    z-index: 1000;
}

.form-help-icon:hover::after,
.form-help-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Form Hints */
.form-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
    font-style: italic;
}

.hint-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Form Info Box */
.form-info-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8efff 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(120, 104, 230, 0.1);
}

.form-info-box strong {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.938rem;
}

.info-box-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.form-info-box p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.form-label::after {
    content: ' *';
    color: var(--accent-color);
    font-weight: 700;
}

/* Remove asterisco de campos opcionais */
.form-group:has(#toy-benefits) .form-label::after,
.form-group:has(#toy-description) .form-label::after,
.form-group:has(#toy-location) .form-label::after {
    content: '';
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white;
    color: var(--text-color);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #B8B5FF;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(120, 104, 230, 0.12);
    background: #fafafe;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%237868E6' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.75rem;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

/* Visual feedback for filled inputs */
.form-input:valid:not(:placeholder-shown) {
    border-color: #10B981;
}

/* Remove validação visual do select para evitar conflito de setas */
.form-select:valid:not([value=""]) {
    border-color: var(--border-color);
}

.form-select:focus:valid:not([value=""]) {
    border-color: var(--primary-color);
}

/* Input de data estilizado */
.form-input[type="date"] {
    position: relative;
    cursor: pointer;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.form-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.form-input[type="number"]::-webkit-inner-spin-button,
.form-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
    border-top: 2px solid var(--border-color);
    position: relative;
}

.form-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.2;
}

/* Toy Selector */
.toy-selector {
    max-height: 240px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    background: #fafafe;
}

.toy-selector::-webkit-scrollbar {
    width: 6px;
}

.toy-selector::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 3px;
}

.toy-selector::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.toy-selector__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: var(--transition-fast);
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.toy-selector__item:hover {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.toy-selector__item:has(input:checked) {
    background: linear-gradient(135deg, #f0efff, #ffffff);
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(120, 104, 230, 0.15);
}

.toy-selector__checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.toy-selector__item label {
    cursor: pointer;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Notifications */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease-in-out;
    max-width: 300px;
}

.notification--success {
    border-left-color: #10B981;
}

.notification--error {
    border-left-color: var(--accent-color);
}

.notification--warning {
    border-left-color: #F59E0B;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification__message {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6B59D3 100%);
    color: white;
    padding: 3rem 0 1.5rem ;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--primary-color));
    opacity: 0.5;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Brand Section */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__logo {
    width: 50px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.footer__logo:hover {
    transform: scale(1.08);
}

.footer__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer__description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 400px;
    margin: 0;
}

/* Links Section */
.footer__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__links-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.footer__links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 6px;
    position: relative;
}

.footer__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: white;
    transition: var(--transition);
    border-radius: 2px;
}

.footer__link:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

.footer__link:hover::before {
    height: 100%;
}

.footer__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.footer__link-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.footer__link:hover .footer__link-icon svg {
    transform: scale(1.15);
}

/* Footer Bottom */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    gap: 1rem;
}

.footer__copyright {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.footer__version {
    font-size: 0.85rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .toys-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header__wrapper {
        margin-bottom: 0;
    }
    
    .header__title {
        font-size: 1.4rem;
        margin-bottom: 0;
        gap: 0.75rem;
    }
    
    .header__logo {
        height: 40px;
    }
    
    .header__icon {
        font-size: 1.5rem;
    }
    
    /* Show Hamburger */
    .hamburger {
        display: flex;
    }
    
    /* Mobile Menu */
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-color) 0%, #6B59D3 100%);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        z-index: 100;
    }
    
    .header__nav.nav--open {
        right: 0;
    }
    
    /* Mobile Menu Header */
    .mobile-menu__header {
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 2rem 1.5rem 1.5rem;
        background: rgba(0, 0, 0, 0.2);
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        gap: 1rem;
    }
    
    .mobile-menu__logo {
        width: 60px;
        height: auto;
        animation: logoFloat 3s ease-in-out infinite;
    }
    
    @keyframes logoFloat {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
    
    .mobile-menu__title {
        font-size: 1.3rem;
        font-weight: 700;
        color: white;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    /* Mobile Menu Navigation */
    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0.75rem;
        flex: 1;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
        border-radius: var(--border-radius);
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: var(--transition);
    }
    
    .nav-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .nav-btn--active {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .nav-btn__icon {
        width: 22px;
        height: 22px;
    }
    
    /* Mobile Menu Footer */
    .mobile-menu__footer {
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.2);
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        gap: 0.5rem;
    }
    
    .mobile-menu__footer-text {
        font-size: 0.9rem;
        font-weight: 600;
        color: white;
        margin: 0;
        text-align: center;
    }
    
    .mobile-menu__footer-version {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
        padding: 0.25rem 0.75rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }
    
    .mobile-menu__footer-copy {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
        text-align: center;
    }
    
    .main {
        padding: 1.5rem 0;
    }
    
    .view__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .view__header h2 {
        font-size: 1.6rem;
    }
    
    .view__header .btn {
        width: 100%;
    }
    
    .toys-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .toy-card {
        padding: 1.25rem;
    }
    
    .filters {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Modal Responsiveness for Tablets */
    .modal__content {
        width: 95%;
        max-width: 520px;
        max-height: calc(90vh - var(--ad-banner-height));
        margin-bottom: var(--ad-banner-height);
        border-radius: var(--border-radius-lg);
    }
    
    .modal__header {
        padding: 1.5rem 1.75rem;
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
        z-index: 1;
        border-bottom: 2px solid var(--border-color);
    }
    
    .modal__header h3 {
        font-size: 1.3rem;
    }
    
    .modal__form {
        padding: 1.75rem;
        max-height: calc(90vh - var(--ad-banner-height) - 140px);
    }
    
    .form-actions {
        padding: 1.25rem 1.75rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.85rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .form-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%237868E6' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.85rem center;
        background-size: 14px;
        padding-right: 2.5rem;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 2px solid var(--border-color);
        position: sticky;
        bottom: 0;
        background: white;
    }
    
    .form-actions .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .toy-selector {
        max-height: 250px;
        padding: 0.75rem;
    }
    
    .toy-selector__item {
        padding: 0.75rem 0.5rem;
        min-height: 44px;
    }
    
    .toy-selector__checkbox {
        width: 20px;
        height: 20px;
    }
    
    .rotation-item {
        padding: 1.25rem;
    }
    
    .rotation-item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .rotation-item__actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    
    .rotation-item__actions .btn {
        flex: 1;
    }
    
    .footer {
        padding: 2.5rem 0 1.25rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .footer__logo {
        width: 45px;
    }
    
    .footer__title {
        font-size: 1.3rem;
    }
    
    .footer__description {
        font-size: 0.9rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer__copyright {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header__title {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .header__logo {
        height: 36px;
    }
    
    .header__text {
        font-size: 1.1rem;
    }
    
    .header__icon {
        font-size: 1.3rem;
    }
    
    .empty-state__logo {
        width: 100px;
    }
    
    .hamburger {
        width: 28px;
        height: 28px;
    }
    
    .hamburger__line {
        height: 2.5px;
    }
    
    .header__nav {
        width: 90%;
        max-width: 300px;
    }
    
    .mobile-menu__header {
        padding: 1.75rem 1.25rem 1.25rem;
    }
    
    .mobile-menu__logo {
        width: 55px;
    }
    
    .mobile-menu__title {
        font-size: 1.2rem;
    }
    
    .mobile-menu__nav {
        padding: 1.5rem 1.25rem;
        gap: 0.65rem;
    }
    
    .nav-btn {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .nav-btn__icon {
        width: 20px;
        height: 20px;
    }
    
    .mobile-menu__footer {
        padding: 1.25rem 1rem;
    }
    
    .mobile-menu__footer-text {
        font-size: 0.85rem;
    }
    
    .view__header h2 {
        font-size: 1.4rem;
    }
    
    .toy-card {
        padding: 1rem;
    }
    
    .toy-card__title {
        font-size: 1.1rem;
    }
    
    .toy-card__category,
    .toy-card__age {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .toy-card__actions {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .toy-card__btn {
        width: 44px;
        height: 44px;
    }
    
    .toy-card__btn svg {
        width: 20px;
        height: 20px;
    }
    
    .filters {
        padding: 1rem;
    }
    
    /* Modal Optimized for Small Screens */
    .modal {
        padding: 8px 8px calc(var(--ad-banner-height) + 8px) 8px;
        align-items: flex-end;
    }
    
    .modal__content {
        width: 100%;
        max-width: 100%;
        max-height: calc(95vh - var(--ad-banner-height));
        margin-bottom: 0;
        border-radius: 12px 12px 0 0;
    }
    
    .modal__header {
        padding: 1.25rem 1.5rem;
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
        z-index: 10;
        border-bottom: 2px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .modal__header h3 {
        font-size: 1.15rem;
        font-weight: 700;
    }
    
    .modal__header h3::before {
        width: 3px;
        height: 20px;
    }
    
    .modal__close {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }
    
    .modal__form {
        padding: 1.25rem;
        max-height: calc(95vh - var(--ad-banner-height) - 150px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents iOS zoom on focus */
        min-height: 48px;
        border: 2px solid var(--border-color);
        border-radius: 8px;
    }
    
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(120, 104, 230, 0.15);
    }
    
    .form-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%237868E6' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 16px;
        padding-right: 2.75rem;
    }
    
    .form-textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
        margin: 0;
        border-top: 2px solid var(--border-color);
        position: sticky;
        bottom: 0;
        background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    }
    
    .form-actions .btn {
        width: 100%;
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;
        font-weight: 600;
        border-radius: 8px;
    }
    
    .btn--primary {
        order: -1;
    }
    
    .toy-selector {
        max-height: 220px;
        padding: 0.75rem;
        border: 2px solid var(--border-color);
    }
    
    .toy-selector__item {
        padding: 1rem 0.75rem;
        min-height: 52px;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .toy-selector__item:last-child {
        border-bottom: none;
    }
    
    .toy-selector__checkbox {
        width: 22px;
        height: 22px;
        min-width: 22px;
        cursor: pointer;
    }
    
    .toy-selector__item label {
        flex: 1;
        cursor: pointer;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .notifications {
        right: 8px;
        left: 8px;
        top: 8px;
    }
    
    .notification {
        max-width: 100%;
        padding: 1rem;
    }
    
    .analytics-card {
        padding: 1.5rem;
    }
    
    .analytics-card__value {
        font-size: 2.5rem;
    }
    
    .empty-state {
        padding: 3rem 1.5rem;
    }
    
    .empty-state__logo {
        width: 90px;
        margin-bottom: 1.5rem;
    }
    
    .empty-state__icon {
        font-size: 3rem;
    }
    
    .empty-state__benefits {
        grid-template-columns: 1fr;
    }
    
    /* Tooltips responsivos em mobile */
    .form-help-icon::after {
        width: 200px;
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }
    
    .btn--help {
        font-size: 0.813rem;
        padding: 0.5rem 0.875rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer__content {
        gap: 1.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
    
    .footer__brand {
        gap: 0.75rem;
    }
    
    .footer__logo {
        width: 40px;
    }
    
    .footer__title {
        font-size: 1.2rem;
    }
    
    .footer__description {
        font-size: 0.85rem;
    }
    
    .footer__links-title {
        font-size: 0.85rem;
    }
    
    .footer__link {
        font-size: 0.85rem;
        padding: 0.4rem;
    }
    
    .footer__link-icon {
        width: 18px;
        height: 18px;
    }
    
    .footer__copyright {
        font-size: 0.8rem;
    }
    
    .footer__version {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Logo fallback - se a imagem não carregar */
.header__logo[alt]::before {
    content: '🧸';
    font-size: 2rem;
}

@supports (object-fit: contain) {
    .header__logo[alt]::before {
        content: '';
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-light: #000000;
    }
    
    .toy-card {
        border-width: 2px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
}

/* Better touch target sizes for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .form-input,
    .form-select,
    .toy-selector__checkbox {
        min-height: 44px;
    }
    
    .modal__close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Ad Banner Space */
/* 
   O espaço para o banner de anúncio já está reservado nos modais.
   Use a variável --ad-banner-height (90px) para ajustar se necessário.
   
   Para adicionar seu banner:
   1. Crie um elemento com position: fixed; bottom: 0;
   2. Defina height: 90px (ou var(--ad-banner-height))
   3. Use z-index: 999 para ficar acima do conteúdo mas abaixo dos modais
   
   Os modais têm z-index: 1000 e já consideram este espaço em suas alturas.
*/

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
}

.menu-overlay--active {
    opacity: 1;
    visibility: visible;
}

/* Desktop - ensure menu is always visible */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
    
    .header__nav {
        position: static !important;
        width: auto !important;
        height: auto !important;
        flex-direction: row !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .mobile-menu__header,
    .mobile-menu__footer {
        display: none !important;
    }
    
    .mobile-menu__nav {
        display: flex !important;
        flex-direction: row !important;
        padding: 0 !important;
        gap: 0.5rem !important;
        flex: none !important;
    }
    
    .nav-btn {
        width: auto !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
    }
    
    .nav-btn:hover {
        transform: translateY(-1px) !important;
    }
}

/* Mobile - show header and footer */
@media (max-width: 768px) {
    .mobile-menu__header,
    .mobile-menu__footer {
        display: flex !important;
    }
}

/* Print styles */
@media print {
    .hamburger,
    .header__nav,
    .btn,
    .modal,
    .notifications {
        display: none !important;
    }
    
    .toys-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .toy-card {
        break-inside: avoid;
    }
}
