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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Навигация */
.navbar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    padding: 20px 30px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    font-size: 28px;
}

/* Заголовок */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.header h1 {
    font-size: 3em;
    color: #2d3436;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #636e72;
    margin-bottom: 10px;
}

.author {
    font-size: 1em;
    color: #0984e3;
    font-weight: bold;
}

/* Карточки */
.status-card, .data-card, .control-card, .viz-card, .music-card, .info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.status-header i {
    color: #00b894;
    font-size: 24px;
}

.status-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.pulse-icon {
    color: #ff7675;
    font-size: 36px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse-value {
    font-size: 48px;
    font-weight: bold;
    color: #2d3436;
}

/* Дашборд */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.data-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.data-item:hover {
    transform: translateY(-5px);
}

.data-label {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 5px;
}

.data-value {
    font-size: 32px;
    font-weight: bold;
    color: #2d3436;
}

.data-unit {
    font-size: 12px;
    color: #636e72;
    margin-top: 5px;
}

/* Кнопки */
.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.btn {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-calm {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
}

.btn-stress {
    background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
    color: white;
}

.btn-reset {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
    color: white;
}

/* Визуализатор */
.visualizer {
    height: 150px;
    background: #2d3436;
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.viz-bar {
    position: absolute;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to top, #667eea, #764ba2);
    border-radius: 5px 5px 0 0;
}

/* Музыкальная информация */
.music-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.music-params {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.param {
    text-align: center;
}

.param-label {
    display: block;
    font-size: 14px;
    color: #636e72;
    margin-bottom: 5px;
}

.param-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2d3436;
}

.music-status {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.music-icon {
    font-size: 48px;
    color: #667eea;
}

.music-text {
    flex: 1;
}

.music-title {
    font-size: 20px;
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 5px;
}

.music-desc {
    font-size: 14px;
    color: #636e72;
}

/* Информация о проекте */
.project-info {
    margin-top: 20px;
}

.project-info p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #2d3436;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 18px;
    color: #2d3436;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: #636e72;
    line-height: 1.5;
}

/* Футер */
.footer {
    background: #2d3436;
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #b2bec3;
}

.footer-section a {
    color: #74b9ff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #636e72;
    color: #b2bec3;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        grid-template-columns: 1fr;
    }
    
    .music-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .music-params {
        grid-template-columns: 1fr;
    }
}