@charset "utf-8";
/* CSS Document */

body, table     {font-family: 'Arial', sans-serif; font-size: 12px; color: #333333;}

a               {color: #3498db; text-decoration: none}
a:hover         {color: #2980b9; text-decoration: underline}
a:active        {color: #2980b9; text-decoration: none}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* --- */


.logo_main {
    margin-bottom: 20px;
}

.welcome-text {
    margin-bottom: 30px;
}

.welcome-text h2 {
    font-family: 'Arial', sans-serif;
    color: #333333;
    font-size: 18px;
    margin-bottom: 8px;
}

.auth-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 330px;
    margin: 0 auto;
}

.auth-container .btn {
    font-size: 18px;
    text-decoration: none;
    width: 100%;
}

.ac_quest {
    font-family: 'Arial', sans-serif;
    color: #999999;
    font-size: 14px;
    margin-top: 50px;
    margin-bottom: 2px;
}

/* --- */

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #333333;
    font-size: 16px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
}

.remember-me input {
    margin: 0;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link p {
    color: #7f8c8d;
    font-size: 12px;
}

/* --- */
.error-message {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 4px;
}

.alert {
	padding: 12px;
	border-radius: 5px;
	margin-bottom: 20px;
}

.alert-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.alert-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
/* кнопки */
.btn-primary {
	background-color: #1859C1;
	text-decoration: none;
}
.btn-primary:hover {
	background: #0D6EFD;
	text-decoration: none;
}
.btn-secondary {
	text-decoration: none;
}
.btn-secondary:hover {
	text-decoration: none;
}
.btn-w {
	width: 100%;
}
/* !!! нижнюю переделать оставить только стили позиционирования */
.button-container {
	display: flex;
	justify-content: flex-end;
}

.add-btn {
	background: #0157C6;
	color: white;
	text-decoration: none;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: inherit;
}

.add-btn:hover {
	background: #054eac;
	color: white;
	text-decoration: none;
}

/* Стили для бокового меню */
.sidebar {
	width: 220px;
	background: #0D1521;
	color: white;
	display: flex;
	flex-direction: column;
	height: 100vh;
	position: fixed;
	left: 0;
	top: 0;
}

.logo {
	padding: 30px 25px;
	border-bottom: 2px solid #13273A;
	text-align: center;
}

.logo h1 {
	font-size: 24px;
	font-weight: bold;
	color: #3498db;
}

.nav-menu {
	flex: 1;
	padding: 20px 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.nav-item {
	padding: 20px 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	border-left: 4px solid transparent;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.nav-item:hover {
	border-left: 4px solid #3f4f62;
}

.nav-item.active {
	border-left: 4px solid #0098ec;
}

.nav-icon {
	font-size: 32px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
	transform: scale(1.1);
}

.iconsv {
  fill: #3f4f62; 
}

.nav-item.active .iconsv {
	fill: #0098ec;
}

.nav-label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.user-section {
	padding: 20px 25px;
	border-top: 2px solid #13273A;
}

.user-info {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #3498db;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	font-weight: bold;
}

.user-details h3 {
	font-size: 14px;
	margin-bottom: 2px;
}

.user-details p {
	font-size: 12px;
	color: #bdc3c7;
}

.logout-btn {
	width: 100%;
	padding: 12px;
	background: #344E63;
	text-decoration: none;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s ease;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.logout-btn a {
	text-decoration: none;
	color: #b2b2b2;
}

.logout-btn:hover {
	background: #0098EC;
}

/* Основной контент */
.main-content {
	font-size: 12px;
	flex: 1;
	margin-left: 220px;
	padding: 30px;
	background: white;
	min-height: 100vh;
}

.main-content h3{
	font-size: 24px;
}

.content-header {
	margin-bottom: 30px;
	/* добавлял для выравнивания addbtn */
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.content-header h1 {
	color: #2c3e50;
	font-size: 28px;
	margin-bottom: 10px;
}

/* Панель фильтров */
.filters-panel {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 25px;
	border: 1px solid #e9ecef;
}

.filters-row {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.filter-group {
	flex: 1;
	min-width: 200px;
}

.filter-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #495057;
}

.filter-group select,
.filter-group input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
}

.actions-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.search-box {
	flex: 1;
	min-width: 300px;
}

.button-container {
	display: flex;
	justify-content: flex-end;
}

/* Стили для таблицы */
.table-container {
	background: white;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	border: 1px solid #e9ecef;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
}

.data-table th {
	padding: 12px 15px;
	text-align: left;
	font-weight: 700;
	border-bottom: 1px solid #e9ecef;
}

.data-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #e9ecef;
	color: #495057;
}

.data-table tr:hover {
	background: #f8f9fa;
}

.data-table tr:last-child td {
	border-bottom: none;
}

.drone-status {
    padding: 4px 8px;
    border-radius: 12px;
}

.ONLINE {
	background: #d4edda;
	color: #155724;
}

.OFFLINE {
	background: #f8d7da;
	color: #721c24;
}

.action-buttons {
	display: flex;
	gap: 8px;
}

.btn-edit {
	color: #212529;
	border: none;
	padding: 5px 10px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
}

.btn-delete {
	color: white;
	border: none;
	padding: 5px 10px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
}

/* Блок с информацией об оборудовании */
.equipment-info {
	background: #f8f9fa;
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 25px;
	border: 1px solid #e9ecef;
}

.equipment-info h2 {
	color: #2c3e50;
	margin-bottom: 20px;
	font-size: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.info-item {
	display: flex;
	flex-direction: column;
}

.info-label {
	font-weight: bold;
	color: #495057;
	margin-bottom: 5px;
}

.info-value {
	color: #2c3e50;
	font-size: 14px;
	padding: 8px 12px;
	background: white;
	border: 1px solid #ced4da;
	border-radius: 4px;
}

.status-online {
	color: #28a745;
	font-weight: bold;
}

.status-offline {
	color: #dc3545;
	font-weight: bold;
}

/* Блок загрузки прошивки */
.firmware-upload {
	background: #f8f9fa;
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 25px;
	border: 1px solid #e9ecef;
}

.firmware-upload h2 {
	color: #2c3e50;
	margin-bottom: 20px;
	font-size: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.upload-area {
	border: 2px dashed #ced4da;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	background: white;
	transition: all 0.3s ease;
	cursor: pointer;
}

.upload-area:hover {
	border-color: #3498db;
	background: #f8f9ff;
}

.upload-area.dragover {
	border-color: #28a745;
	background: #f0fff4;
}

.upload-icon {
	font-size: 48px;
	margin-bottom: 15px;
	color: #6c757d;
}

.upload-text {
	margin-bottom: 15px;
	color: #495057;
}

.file-input {
	display: none;
}

.browse-btn {
	background: #3498db;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s ease;
}

.browse-btn:hover {
	background: #2980b9;
}

.selected-file {
	margin-top: 15px;
	padding: 10px;
	background: #e7f3ff;
	border-radius: 4px;
	border-left: 4px solid #3498db;
}

/* Блок ввода команды */
.command-input {
	background: #f8f9fa;
	padding: 25px;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.command-input h2 {
	color: #2c3e50;
	margin-bottom: 20px;
	font-size: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.input-group {
	display: flex;
	gap: 15px;
	align-items: flex-end;
}

.input-field {
	flex: 1;
}

.input-field label {
	display: block;
	margin-bottom: 5px;
	color: #495057;
}

.input-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
}

.confirm-btn {
	background: #0157C6;
	color: white;
	border: none;
	padding: 10px 25px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s ease;
	height: 40px;
}

.confirm-btn:hover {
	background: #054eac;
}

.confirm-btn:disabled {
	background: #6c757d;
	cursor: not-allowed;
}
/* ----------------- */
        /* Правая часть с формой */
        .form-section {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
            background: #f8f9fa;
        }

        .register-container {
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 40px;
            width: 100%;
            max-width: 450px;
            text-align: center;
        }

        .logo h1 {
            color: #2c3e50;
            font-size: 24px;
            font-weight: bold;
        }

        .welcome-text {
            margin-bottom: 25px;
        }

        .welcome-text h2 {
            color: #2c3e50;
            font-size: 20px;
            margin-bottom: 8px;
        }

        .welcome-text p {
            color: #7f8c8d;
            font-size: 14px;
        }

        .register-form {
            text-align: left;
        }

        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 0;
        }

        .form-reg-group {
            margin-bottom: 18px;
            flex: 1;
        }

        .form-reg-group.full-width {
            flex: 0 0 100%;
        }

        .form-reg-group label {
            display: block;
            margin-bottom: 6px;
            color: #2c3e50;
            font-weight: 500;
            font-size: 13px;
        }

        .form-input {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid #e9ecef;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .form-input:focus {
            outline: none;
            border-color: #3498db;
            background: white;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .form-input.error {
            border-color: #e74c3c;
        }

        .password-container {
            position: relative;
        }

        .toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: #7f8c8d;
            font-size: 14px;
            padding: 0;
            width: 20px;
            height: 20px;
        }

        .password-strength {
            margin-top: 5px;
            height: 3px;
            border-radius: 2px;
            background: #e9ecef;
            overflow: hidden;
        }

        .strength-bar {
            height: 100%;
            width: 0;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .strength-weak {
            background: #e74c3c;
            width: 33%;
        }

        .strength-medium {
            background: #f39c12;
            width: 66%;
        }

        .strength-strong {
            background: #27ae60;
            width: 100%;
        }

        .strength-text {
            font-size: 11px;
            margin-top: 2px;
            text-align: right;
            color: #7f8c8d;
        }


        .login-link {
            text-align: center;
            margin-top: 15px;
        }

        .login-link p {
            color: #7f8c8d;
            font-size: 13px;
        }

        .login-link a {
            color: #3498db;
            text-decoration: none;
            font-weight: 500;
        }

        .login-link a:hover {
            text-decoration: underline;
        }

        .terms-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 18px;
            font-size: 12px;
        }

        .terms-checkbox input {
            margin-top: 2px;
            flex-shrink: 0;
        }

        .terms-checkbox a {
            color: #3498db;
            text-decoration: none;
        }

        .terms-checkbox a:hover {
            text-decoration: underline;
        }

        .info-message {
            background: #e8f5e8;
            border: 1px solid #27ae60;
            border-radius: 5px;
            padding: 10px;
            margin-bottom: 18px;
            font-size: 12px;
            color: #2c3e50;
        }

        .messages-er {
            background: #FAE9EA;
            border: 1px solid #FC9D9D;
            border-radius: 5px;
            padding: 10px;
            margin-bottom: 18px;
            font-size: 12px;
            color: #F44D41;
        }
/* Адаптивность */
@media (max-width: 768px) {
	.sidebar {
		width: 100%;
		height: auto;
		position: relative;
	}
	
	.main-content {
		margin-left: 0;
	}
	
	body {
		flex-direction: column;
	}

	.nav-menu {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.nav-item {
		flex: 0 0 calc(33.333% - 10px);
		padding: 15px 10px;
	}

	.filters-row {
		flex-direction: column;
	}

	.filter-group {
		min-width: 100%;
	}

	.actions-row {
		flex-direction: column;
	}

	.search-box {
		min-width: 100%;
	}
}

.dm1 {
	font-size: 14px;
	font-weight: 700;
	padding: 12px 15px;
	border: 1px solid #e9ecef;
}