@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #121212;
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.5);
    --accent: #00d1ff;
    --glow: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-panel: rgba(255, 255, 255, 0.85);
}

body {
    background: radial-gradient(ellipse at top, #1a1a1a 0%, #121212 100%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.85);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 209, 255, 0.3);
    color: rgba(0, 209, 255, 1);
    transform: translateY(-1px);
}

.btn-primary {
    background: rgba(0, 209, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(0, 209, 255, 1);
    border-color: rgba(0, 209, 255, 0.2);
}

.btn-primary:hover {
    background: rgba(0, 209, 255, 0.12);
    border-color: rgba(0, 209, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.06);
}

.btn-danger:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="date"] {
    position: relative;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.8);
    opacity: 0.6;
    padding: 4px;
    margin-left: 8px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(1);
}

input[type="date"]::-webkit-datetime-edit-text {
    color: rgba(255, 255, 255, 0.85);
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: rgba(255, 255, 255, 0.85);
}

input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
    background: rgba(0, 209, 255, 0.15);
    color: rgba(0, 209, 255, 1);
    border-radius: 4px;
}

/* Для Firefox */
input[type="date"]::-moz-placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input[type="date"]:invalid::-webkit-datetime-edit {
    color: rgba(255, 255, 255, 0.3);
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

select option {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px;
}

select option:checked,
select option:hover {
    background: rgba(0, 209, 255, 0.15);
    color: rgba(0, 209, 255, 1);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(0, 209, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 1px rgba(0, 209, 255, 0.15);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    margin: 8vh auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: inset 0 0 0 1px var(--glow), 0 0 64px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--glow);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .btn-sm {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .modal {
        padding: 20px;
    }
    
    .modal-content {
        max-width: 100%;
        padding: 24px 20px;
        margin: 0;
    }
    
    .modal-header {
        margin-bottom: 20px;
    }
    
    .modal-body {
        padding: 20px 0;
    }
    
    .modal-footer {
        margin-top: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .modal {
        padding: 12px;
    }
    
    .modal-content {
        padding: 20px 16px;
    }
}
