/* ОСНОВНЫЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0c2461, #1e3799);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* ШАПКА */
header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
}

.status-success { background: rgba(76, 217, 100, 0.2); color: #4cd964; }
.status-error { background: rgba(255, 59, 48, 0.2); color: #ff3b30; }
.status-warning { background: rgba(255, 204, 0, 0.2); color: #ffcc00; }

/* КАРТОЧКИ */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #00c6ff;
}

/* ТЕМПЕРАТУРА */
.temp-display {
    text-align: center;
    margin-bottom: 25px;
}

.temp-value {
    font-size: 4rem;
    font-weight: bold;
    color: #00c6ff;
    text-shadow: 0 0 20px rgba(0, 198, 255, 0.5);
}

.temp-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: -10px;
}

/* СЛАЙДЕР */
.slider-container {
    margin-bottom: 25px;
}

.label {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

input[type="range"] {
    width: 100%;
    height: 40px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    outline: none;
    margin: 15px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    background: #007aff;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.5);
}

.slider-info {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* КНОПКИ */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #8e8e93, #5a5a5e);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-clicked {
    transform: scale(0.95) !important;
    background: #4cd964 !important;
}

/* ПЕРЕКЛЮЧАТЕЛИ */
.mode-switch, .manual-control {
    margin-bottom: 25px;
}

.switch-label {
    font-size: 1rem;
    margin-bottom: 10px;
    display: block;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #8e8e93;
    transition: .4s;
    border-radius: 34px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #4cd964;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

.switch-text {
    margin-left: 70px;
    font-size: 1rem;
    line-height: 34px;
}

/* СТАТУС */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.status-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
}

.status-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.status-value {
    font-size: 1.1rem;
    font-weight: bold;
}

/* ПОДВАЛ */
footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.connection-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    .temp-value {
        font-size: 3rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .connection-info {
        flex-direction: column;
        gap: 10px;
    }
	
	#installButton {
    display: none;
    padding: 12px 24px;
    margin: 10px 0;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.2);
}

#installButton:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    box-shadow: 0 6px 8px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

#installButton:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

/* iOS подсказка */
.ios-guide {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 122, 255, 0.2);
    text-align: left;
}

.ios-guide h4 {
    margin: 0 0 10px 0;
    color: #007aff;
    font-size: 1.1em;
}

.ios-guide ol {
    margin: 10px 0;
    padding-left: 20px;
    color: #555;
}

.ios-guide li {
    margin-bottom: 8px;
}

.ios-guide p {
    margin: 10px 0 0 0;
    font-size: 0.85em;
    color: #777;
}

/* Иконки в тексте iOS подсказки */
.ios-guide .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    vertical-align: middle;
    text-align: center;
    font-weight: bold;
}
	
}