* {
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2f7, #d9e2ec);
    padding: 20px;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
}

.header-text h1 {
    margin: 0;
    font-size: 28px;
    color: #1a1a1a;
}

.header-text .subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #666;
}

.container {
    background: #ffffff;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.status-card {
    text-align: center;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    background: #f8f9fa;
}

.status-card.pending {
    border-left: 5px solid #f0ad4e;
}

.status-card.processing {
    border-left: 5px solid #17a2b8;
}

.status-card.success {
    border-left: 5px solid #28a745;
}

.status-card.failed {
    border-left: 5px solid #dc3545;
}

.status-card.error {
    border-left: 5px solid #dc3545;
}

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    background: #f0ad4e;
}

h1 {
    margin: 12px 0;
    font-size: 28px;
    color: #1a1a1a;
}

.status-message {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.status-form {
    margin-bottom: 24px;
    text-align: left;
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.text-input {
    border: 1px solid #d7dbe0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
}

.text-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.status-result {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.status-result.hidden {
    display: none;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.result-label {
    color: #999;
    font-weight: 500;
}

.result-value {
    font-weight: 700;
}

.result-note {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

.result-placeholder {
    margin: 0;
    color: #666;
}

.error-message {
    color: #d9534f;
    font-weight: 600;
    margin-bottom: 16px;
}

.btn {
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.contact-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.contact-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.contact-text {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #666;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact-icon {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: 13px;
    color: #999;
}

.machine-table-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: left;
}

.machine-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.machine-table th,
.machine-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.machine-table th {
    background-color: #f2f2f2;
}

.machines-table-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
    text-align: left;
}

.machines-table-container.hidden {
    display: none;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 20px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .status-card {
        padding: 20px;
    }
}
