/* Подключение Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* Стили для тела страницы */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 15px;
    background-color: #f4f4f4;
}
form {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
form label {
    flex: 1 1 48%;
    margin-bottom: 6px;
    font-size: 12px;
    color: #2c3e50;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}
.field-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
}
.field-group label {
    flex: 1 1 50%;
    margin-bottom: 6px;
}
form select,
form input,
form textarea {
    padding: 5px;
    width: 100%;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    background: #f8f8f8;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.15), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.2s ease, outline 0.2s ease;
}
form select:hover,
form input:hover,
form textarea:hover {
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.2), inset -4px -4px 8px rgba(255, 255, 255, 0.6);
}
form textarea {
    resize: vertical;
    min-height: 60px;
}
form button.save-button {
    padding: 6px 12px;
    background: linear-gradient(145deg, #3498db, #2c3e50);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), -2px -2px 4px rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 200px;
    margin: 8px auto;
}
form button.save-button:hover {
    background: linear-gradient(145deg, #2980b9, #34495e);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), -3px -3px 6px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}
h2 {
    text-align: center;
    font-size: 16px;
    color: #2c3e50;
    margin: 15px 0 8px;
    font-weight: 500;
}
h3 {
    flex: 1 1 100%;
    margin: 10px 0 6px;
    font-size: 14px;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
    font-weight: 500;
}
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #2c3e50;
    cursor: help;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 5px;
    padding: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.intro-text {
    max-width: 1200px;
    max-height: 150px;
    margin: 0 auto 15px;
    padding: 12px;
    background: url('https://vm-sfera.ru/wp-content/uploads/2025/09/unnamed-2-e1758124502999.png') no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    box-shadow: inset 14px 14px 24px rgba(0, 0, 0, 0.6), inset -14px -14px 24px rgba(255, 255, 255, 0.4),
                0 8px 16px rgba(0, 0, 0, 0.4), 0 0 8px rgba(255, 111, 0, 0.3);
    border: 1px solid #2c3e50;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1.2s ease-in-out;
    overflow: hidden;
}
.intro-text:hover {
    transform: translateY(-4px);
    box-shadow: inset 16px 16px 26px rgba(0, 0, 0, 0.65), inset -16px -16px 26px rgba(255, 255, 255, 0.45),
                0 10px 20px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 111, 0, 0.4);
}
.intro-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.5), rgba(26, 42, 68, 0.5));
    background-blend-mode: multiply;
    opacity: 0.4;
    z-index: -1;
    border-radius: 10px;
}
.intro-text h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 8px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 6px rgba(255, 111, 0, 0.6);
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    animation: pulseGlow 2s infinite ease-in-out;
}
.intro-text h1:hover {
    color: #FFCA28;
    transform: scale(1.03);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 111, 0, 0.8);
}
.intro-text ul {
    list-style-type: disc;
    margin-left: 15px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 8px;
    border-radius: 3px;
    display: inline-block;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 4px rgba(255, 111, 0, 0.5);
}
.intro-text li {
    margin-bottom: 6px;
}
.intro-text p {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 500;
    margin: 6px 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 4px rgba(255, 111, 0, 0.5);
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0% { text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 6px rgba(255, 111, 0, 0.6); }
    50% { text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 111, 0, 0.8); }
    100% { text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 6px rgba(255, 111, 0, 0.6); }
}
.specific-params {
    max-width: 1200px;
    margin: 15px auto;
    padding: 8px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #d0d0d0;
}
.specific-params p {
    font-size: 11px;
    color: #2c3e50;
    font-weight: 400;
}
.specific-params a {
    color: #3498db;
    text-decoration: none;
}
.specific-params a:hover {
    color: #2c3e50;
    text-decoration: underline;
}
.file-note {
    font-size: 10px;
    color: #666;
    margin: 4px 0;
}
.file-note a {
    color: #3498db;
    text-decoration: none;
}
.file-note a:hover {
    color: #2c3e50;
    text-decoration: underline;
}
.order-table {
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 11px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #d0d0d0;
}
.order-table th,
.order-table td {
    border: 1px solid #d0d0d0;
    padding: 5px;
    text-align: left;
}
.order-table th {
    background: linear-gradient(145deg, #e0e0e0, #d0d0d0);
    color: #2c3e50;
    font-weight: 600;
}
.order-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.order-table tr:hover {
    background-color: #fff3cd;
}
.order-table .section-header {
    background: linear-gradient(145deg, #e6e6e6, #d0d0d0);
    font-weight: 500;
    font-size: 12px;
}
.order-actions {
    max-width: 1200px;
    margin: 8px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.inline-form {
    display: inline-block;
}
.delete-button {
    padding: 6px 12px;
    background: linear-gradient(145deg, #ff4d4d, #d32f2f);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), -2px -2px 4px rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}
.delete-button:hover {
    background: linear-gradient(145deg, #e53935, #b71c1c);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), -3px -3px 6px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}
.send-button {
    padding: 6px 12px;
    background: linear-gradient(145deg, #3498db, #2c3e50);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), -2px -2px 4px rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}
.send-button:hover {
    background: linear-gradient(145deg, #2980b9, #34495e);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), -3px -3px 6px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}
.edit-button {
    padding: 6px 12px;
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), -2px -2px 4px rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}
.edit-button:hover {
    background: linear-gradient(145deg, #45a049, #2e7d32);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), -3px -3px 6px rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}
.no-order {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 11px;
    color: #666;
    font-weight: 400;
}
.message-success {
    max-width: 1200px;
    margin: 8px auto;
    color: #28a745;
    font-size: 11px;
    padding: 6px;
    background: #d4edda;
    border-radius: 5px;
    font-weight: 400;
}
.message-error {
    max-width: 1200px;
    margin: 8px auto;
    color: #721c24;
    font-size: 11px;
    padding: 6px;
    background: #f8d7da;
    border-radius: 5px;
    font-weight: 400;
}
.message-warning {
    max-width: 1200px;
    margin: 8px auto;
    color: #856404;
    font-size: 11px;
    padding: 6px;
    background: #fff3cd;
    border-radius: 5px;
    font-weight: 400;
}
/* Стили для цветного фона select */
select.solder-mask-green { background-color: #E8F5E9 !important; }
select.solder-mask-red { background-color: #FFEBEE !important; }
select.solder-mask-yellow { background-color: #FFF8E1 !important; }
select.solder-mask-white { background-color: #FAFAFA !important; }
select.solder-mask-blue { background-color: #E3F2FD !important; }
select.solder-mask-black { background-color: #ECEFF1 !important; }
select.solder-mask-matt-black { background-color: #CFD8DC !important; }
select.solder-mask-purple { background-color: #F3E5F5 !important; }
select.solder-mask-none { background-color: #ECEFF1 !important; }
select.silkscreen-white { background-color: #FAFAFA !important; }
select.silkscreen-yellow { background-color: #FFF8E1 !important; }
select.silkscreen-black { background-color: #ECEFF1 !important; }
select.silkscreen-none { background-color: #ECEFF1 !important; }
@media (max-width: 768px) {
    body { padding: 8px; }
    form label { flex: 1 1 100%; margin-bottom: 5px; font-size: 11px; }
    .field-group { flex-direction: column; gap: 5px; }
    form select, form input, form textarea { width: 100%; font-size: 11px; padding: 4px; }
    .order-table th, .order-table td { padding: 4px; font-size: 10px; }
    .order-actions { flex-direction: column; align-items: stretch; gap: 5px; }
    .save-button, .delete-button, .send-button, .edit-button { width: 100%; font-size: 10px; padding: 5px 10px; }
    .intro-text h1 { font-size: 22px; }
    .intro-text p, .intro-text ul { font-size: 13px; }
}
@media (max-width: 480px) {
    body { padding: 6px; }
    .intro-text h1 { font-size: 18px; }
    .intro-text p, .intro-text ul { font-size: 11px; }
    .order-table th, .order-table td { padding: 3px; font-size: 9px; }
    .save-button, .delete-button, .send-button, .edit-button { font-size: 9px; padding: 4px 8px; }
}