/* style.css - мобильная версия для WebView */

/* Базовые настройки */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

/* Основной контейнер */
.container {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Заголовки */
h1, h2, h3 {
    color: #1e4089;
    margin: 24px 0 16px;
    text-align: center;
    font-weight: 600;
}

/* Основной контент */
.content {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 24px;
    margin: 16px 0;
}

/* Стили для текста */
p {
    text-align: center;
    margin: 12px 0;
    color: #6c757d;
    line-height: 1.6;
}

/* Кнопки */
button, .btn {
    background-color: #1e4089;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    margin: 16px 0;
    width: 80%;
    font-size: 16px;
    cursor: pointer;
}

button:hover, .btn:hover {
    background-color: #183671;
}

/* Формы */
input[type="text"],
input[type="number"],
input[type="email"] {
    width: 80%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Специальные блоки */
.card {
    width: 80%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 16px 0;
    padding: 20px;
}

/* Адаптивные стили */
@media (max-width: 320px) {
    .container {
        padding: 12px;
    }
    
    button, .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    input[type="text"],
    input[type="number"],
    input[type="email"] {
        width: 90%;
    }
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}
/* Стили для списка планшетов */
.tablets-list {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 16px;
 margin: 20px 0;
}

.tablet-item {
 flex: 1 1 100%;
 margin-bottom: 16px;
}

.tablet-button {
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 16px 24px;
 background-color: #fff;
 border-radius: 8px;
 box-shadow: 0 4px 8px rgba(0,0,0,0.1);
 text-decoration: none;
 color: #333;
 transition: 0.3s;
 width: 100%;
 max-width: 300px;
 font-size: calc(1.2rem + 1.2vw); /* Резиновый шрифт */
}

.tablet-button:hover {
 background-color: #f0f0f0;
 transform: translateY(-2px);
 box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.tablet-number {
 font-weight: bold;
 color: #1e4089;
 white-space: nowrap; /* Текст в одну строку */
}

/* Стили для сообщения об отсутствии планшетов */
.alert {
 background-color: #ffebeb;
 border: 1px solid #f8ba00;
 border-radius: 8px;
 padding: 16px;
 margin: 20px 0;
 text-align: center;
}

/* Адаптивные стили */
@media (max-width: 768px) {
.tablet-item {
 flex: 1 1 100%;
 }
}

@media (max-width: 480px) {
.tablet-button {
 padding: 12px 16px;
 font-size: calc(1rem + 1vw);
 }
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.confirmation-container {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.confirmation-info {
    margin-bottom: 24px;
}

.tablet-details {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.button-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-button,
.secondary-button {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: calc(1.2rem - 0.2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-button {
    background-color: #1e4089;
    color: #fff;
}

.main-button:hover {
    background-color: #183671;
}

.secondary-button {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.secondary-button:hover {
    background-color: #e9ecef;
}

@media (max-width: 320px) {
    .main-button,
    .secondary-button {
        padding: 12px;
        font-size: 14px;
    }
}
.tablet-details p {
    color: #333;
}

.tablet-details p:after {
    content: attr(data-status);
}

.tablet-details.free p {
    color: green;
}

.tablet-details.busy p {
    color: red;
}
