/* Glass UI Design System */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --background-color: #f7fafc;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --accent-color: #4c1d95;
    --success-color: #10b981;
    --error-color: #ef4444;
    --text-primary: #212529;
    --text-secondary: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: var(--background-color) !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(118, 75, 162, 0.15) 0px, transparent 50%) !important;
    min-height: 100vh;
    padding-top: 0;
}

/* Glass Navbar */
.glass-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1030;
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.glass-navbar .container-fluid {
    padding-left: 24px;
    padding-right: 24px;
}

.navbar-brand {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 19px;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 10px 19px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 3px;
}

.navbar-nav .nav-link:hover {
    background: var(--glass-bg);
    color: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 32px 0;
}

.authenticated-content {
    margin-top: 100px;
    padding-top: 0;
}

/* Glass Cards */
.glass-card,
div.glass-card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    padding: 32px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.glass-card:hover,
div.glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px);
}

/* Предотвращение смещения плашки при наведении на кнопку */
.glass-card .btn-primary:hover,
.glass-card .btn-success:hover {
    transform: translateY(-2px);
}

/* Page Header */
.page-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.page-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 28px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 16px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724 !important;
    font-weight: 600;
}

.status-active {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404 !important;
    font-weight: 600;
}

/* Новые стили для статуса на странице проектов */
.status-active-new {
    background: linear-gradient(135deg, #0df0a4 0%, #015f41 100%);
    color: #ffffff !important;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.status-completed-new {
    background: linear-gradient(135deg, #393e42 0%, #5a6268 100%);
    color: #ffffff !important;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

/* Buttons */
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
a.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    padding: 10px 24px;
    border-radius: 12px;
    color: white !important;
}

.btn-primary:hover,
button.btn-primary:hover,
input[type="submit"].btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%) !important;
    color: white !important;
}

.btn-primary:focus,
button.btn-primary:focus,
input[type="submit"].btn-primary:focus,
a.btn-primary:focus {
    background: var(--primary-gradient) !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5) !important;
    color: white !important;
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 117, 125, 0.3);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 24px;
    border-radius: 12px;
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.btn-success,
button.btn-success,
input[type="submit"].btn-success,
a.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%) !important;
    border-color: var(--success-color) !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    padding: 10px 24px;
    border-radius: 12px;
    color: white !important;
}

.btn-success:hover,
button.btn-success:hover,
input[type="submit"].btn-success:hover,
a.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    color: white !important;
}

/* User Menu */
.user-menu {
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.user-menu:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--glass-bg);
    color: var(--accent-color);
}

/* Evaluation Table */
.evaluation-table {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.evaluation-table td {
    vertical-align: middle;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.criteria-column {
    width: 40%;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(241, 243, 244, 0.9) 100%);
    font-weight: 600;
    border-right: 2px solid rgba(102, 126, 234, 0.2);
    font-size: 15px;
}

.content-column {
    width: 60%;
    background-color: rgba(255, 255, 255, 0.6);
}

/* Score Input */
.score-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 200px;
}

.score-input {
    width: 80px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.score-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

.score-buttons {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.score-btn {
    width: 32px;
    height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.score-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.1);
    border-color: #667eea;
}

/* Info Icon */
.info-icon {
    color: #667eea;
    cursor: help;
    transition: all 0.3s ease;
    font-size: 16px;
}

.info-icon:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Project Summary */
.project-summary {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(241, 243, 244, 0.9) 100%);
    padding: 24px;
    border-radius: 12px;
    border-top: 4px solid #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.total-score {
    color: #667eea;
    font-size: 16px;
    font-weight: 700;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Container spacing */
.container-fluid {
    padding-left: 32px;
    padding-right: 32px;
}

/* Таблицы с фиксированным размером шрифта */
.table-fixed-font {
    font-size: 16px;
}

.table-fixed-font th,
.table-fixed-font td {
    font-size: 16px;
}

.table-fixed-font th {
    font-weight: 600;
}

.table-fixed-font td {
    font-weight: 400;
}

.table-fixed-font strong {
    font-size: 16px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .authenticated-content {
        margin-top: 110px;
    }
    
    .navbar-brand {
        font-size: 16px;
    }
    
    .glass-navbar {
        padding: 12px 0;
    }
    
    .navbar-nav {
        margin-top: 16px;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 16px;
        margin: 4px 0;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .glass-card {
        padding: 24px;
    }
    
    .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .criteria-column {
        width: 50%;
        font-size: 14px;
    }
    
    .content-column {
        width: 50%;
    }
}
