﻿/* Базовые переменные */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8; 
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
}

body {
    background-color: var(--bg-color);
    overscroll-behavior-y: none;
}

/* Настройки для экранов (вкладок) */
video { border-radius: inherit; }
.view-section {
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.2s ease-out;
}

.view-section::-webkit-scrollbar { width: 4px; }
.view-section::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.1); border-radius: 4px; }
.view-section.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
textarea { font-family: inherit; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .pb-safe { padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.tag-pill {
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #e0e7ff;
    color: #4338ca;
}
.tag-pill.skill { background-color: #dcfce7; color: #15803d; }
input::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }

/* ТЕМЫ ОФОРМЛЕНИЯ */

/* Тёмная тема */
body.theme-dark {
    --bg-color: #111827 !important;
    background-color: var(--bg-color);
    color: #f9fafb !important;
}
body.theme-dark .bg-white, body.theme-dark .bg-gray-50, body.theme-dark .bg-gray-100 { 
    background-color: #1f2937 !important; 
    border-color: #374151 !important; 
}
body.theme-dark .text-gray-900, body.theme-dark .text-gray-800 { color: #f9fafb !important; }
body.theme-dark .text-gray-700, body.theme-dark .text-gray-600, body.theme-dark .text-gray-500 { color: #d1d5db !important; }
body.theme-dark .border, body.theme-dark .border-b, body.theme-dark .border-t { border-color: #374151 !important; }
body.theme-dark #top-navbar { background-color: #111827 !important; border-bottom: 1px solid #374151; }

/* Ретро Тема (Facebook 2004) */
body.theme-retro #top-navbar button {
    border-radius: 4px !important;
}
body.theme-retro {
    font-family: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif !important;
    --bg-color: #edf0f5 !important;
    background-color: var(--bg-color);
}
body.theme-retro #top-navbar {
    background-color: #3b5998 !important;
    border-bottom: 2px solid #1d4088 !important;
}
body.theme-retro .rounded-xl, body.theme-retro .rounded-2xl, body.theme-retro .rounded-lg, body.theme-retro .rounded-full {
    border-radius: 0 !important; /* Убираем круглые углы, делаем квадраты */
}
body.theme-retro .shadow-sm, body.theme-retro .shadow-md, body.theme-retro .shadow-xl {
    box-shadow: none !important;
}
body.theme-retro .border {
    border-color: #3b5998 !important;
}
body.theme-retro button.bg-indigo-600 {
    background-color: #3b5998 !important;
    border: 1px solid #1d4088 !important;
}
body.theme-retro .text-indigo-600 {
    color: #3b5998 !important;
}
body.theme-retro #top-navbar h1 {
    font-family: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif !important;
    font-weight: bold;
    letter-spacing: -1px;
}