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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e2e8f0; /* Добавляем белый цвет по умолчанию для всего текста */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #111827;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #1f2937;
}

.header {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    text-align: center;
}

.tabs {
    display: flex;
    background: #2d3748;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.3s;
}

    .tab:hover {
        background: #4a5568;
    }

    .tab.active {
        background: #3182ce;
    }

.content {
    padding: 30px;
}

.form-section {
    display: none;
}

    .form-section.active {
        display: block;
        animation: fadeIn 0.5s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #e2e8f0;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #4a5568;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #1a202c;
    color: #e2e8f0;
}

    input:focus, select:focus {
        outline: none;
        border-color: #63b3ed;
    }

button {
    width: 100%;
    padding: 12px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

    button:hover {
        background: #2b6cb0;
    }

    button:disabled {
        background: #4a5568;
        cursor: not-allowed;
    }

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

.success {
    background: rgba(104, 211, 145, 0.15);
    color: #68d391;
    border: 1px solid #68d391;
}

.error {
    background: rgba(245, 101, 101, 0.15);
    color: #f56565;
    border: 1px solid #f56565;
}

.user-info {
    background: rgba(45, 55, 72, 0.6);
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    color: #e2e8f0;
}

.hidden {
    display: none;
}

.api-response {
    background: rgba(45, 55, 72, 0.6);
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    color: #e2e8f0;
}

.devices-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background-color: #111827;
}

    .devices-table th {
        background-color: #1a202c;
        color: #e2e8f0;
        padding: 15px;
        text-align: left;
        font-weight: bold;
        font-size: 14px;
    }

    .devices-table td {
        padding: 15px;
        border-bottom: 1px solid #4a5568;
        color: #e2e8f0;
        font-size: 14px;
    }

    .devices-table tr:hover {
        background-color: rgba(45, 55, 72, 0.4);
    }

.status-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.status-online {
    background-color: #68d391;
    box-shadow: 0 0 10px rgba(104, 211, 145, 0.5);
}

.status-offline {
    background-color: #a0aec0;
}

.device-name {
    font-weight: 600;
    color: #e2e8f0;
}

.last-connection {
    color: #a0aec0;
    font-size: 13px;
}

/* Стили для заголовков */
h2 {
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    color: #e2e8f0;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Стили для параграфов */
p {
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Специфичные стили для различных секций */
.form-section h2 {
    color: #e2e8f0;
    border-bottom: 2px solid #63b3ed;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.header h2 {
    color: #63b3ed;
    margin-bottom: 10px;
}

.content h2 {
    color: #e2e8f0;
    text-align: left;
    margin-bottom: 15px;
}

.content h3 {
    color: #63b3ed;
    border-left: 4px solid #63b3ed;
    padding-left: 12px;
    margin-top: 25px;
}

/* Дополнительные стили для второстепенного текста */
.muted-text {
    color: #a0aec0;
    font-size: 0.9rem;
}

.help-text {
    color: #a0aec0;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 5px;
}
