/* ios-neumorphism.css */

:root {
    --bg: #f5f7fa;
    --text: #2d2f36;
    --accent: #6a7cff; /* Apple Blue */
    --accent-light: #e6e9ff;
    --shadow-light: #ffffff;
    --shadow-dark: rgba(174, 179, 196, 0.4);
    --radius: 18px;
    --transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Neumorphism Card */
.neo-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.neo-card:active {
    transform: scale(0.98);
    box-shadow: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
}

/* Header (iOS-style) */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    padding: 1rem 1.2rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

/* Navigation (iOS Bottom Bar) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    margin-bottom: 0;
    left: 0;
    right: 0;
    
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: calc(0.8rem + env(safe-area-inset-bottom)) 0 0.8rem;
    z-index: 100;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    transition: var(--transition);
}

.bottom-nav a.active {
    color: var(--accent);
    font-weight: 600;
}

.bottom-nav a i {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

/* Compact variants */
.nav-compact .nav-row {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
.nav-compact h1 {
    font-size: 1rem !important;
}
.nav-compact h1 i { /* logo icon */
    font-size: 1.1rem !important;
    margin-right: 0.4rem !important;
}
.nav-compact .text-lg { /* generic icons in right area */
    font-size: 1rem !important;
}

.bottom-nav.compact {
    padding: 0px 0 !important;
}
.bottom-nav.compact a {
    padding: 4px 6px !important;
}
.bottom-nav.compact a i {
    font-size: 1.1rem !important;
}
.bottom-nav.compact a span {
    font-size: 10px !important;
    margin-top: 2px !important;
}

/* Buttons */
.btn-neo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    border: none;
    border-radius: 24px;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    transition: var(--transition);
    gap: 8px;
}

.btn-neo:active {
    transform: scale(0.95);
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 6px 6px 12px rgba(106, 124, 255, 0.3), -6px -6px 12px #ffffff;
}

/* Input Fields */
.input-neo {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 14px;
    background: var(--bg);
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    color: var(--text);
    font-family: var(--font-main);
    transition: var(--transition);
}

.input-neo:focus {
    outline: none;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light), 0 0 0 3px var(--accent-light);
}

/* List Items */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 14px;
    background: var(--bg);
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    transition: var(--transition);
}

.list-item:active {
    transform: scale(0.98);
}

.list-item .label {
    font-weight: 500;
}

.list-item .value {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Status Chips */
.chip {
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.chip.green { background: #d1fae5; color: #065f46; }
.chip.orange { background: #fff7ed; color: #9a3412; }
.chip.red { background: #fee2e2; color: #991b1b; }

/* Animation */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Icons (use Font Awesome or iOS-style emojis) */
.icon {
    font-size: 1.4rem;
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        margin: 2rem auto;
        padding: 0 1rem;
    }
    .bottom-nav { display: none; }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* под навигацию */
    }
    .container {
        padding: 0;
        margin: 0;
    }
}

.quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    transition: var(--transition);
    width: 100%;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    margin: 0.5rem;
    min-height: 80px;
}

.quick-tile:hover {
    transform: scale(0.98);
    box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
}

.quick-tile i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.quick-tile.blue { background: #e6f2ff; }
.quick-tile.green { background: #e6ffe6; }
.quick-tile.yellow { background: #fff7e6; }
.quick-tile.purple { background: #f0e6ff; }

.quick-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 40px;
}
/* Neumorphism Modal Panel */
.neo-modal-panel {
    background: var(--bg);
    border-radius: 24px 24px 0 0;
    box-shadow: 
        0 -10px 20px rgba(0, 0, 0, 0.05),
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Для мобильных устройств — закругления только сверху */
@media (max-width: 768px) {
    .neo-modal-panel {
        border-radius: 24px 24px 0 0;
    }
}
:root {
    --vh: 100%; /* по умолчанию */
  }
  
  html, body {
    height: 100%;
    min-height: -webkit-fill-available;
  }
  .login-container {
    height: calc(var(--vh) * 100);
  }
  body.auth .bottom-nav {
    display: none !important;
  }
  body.auth {
    padding-bottom: 0 !important;
  }
  