:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --border-color: #d3d9df;
    --background-color: #f4f7fa;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.prescription-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prescription-header {
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border-radius: 6px 6px 0 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.prescription-header img {
    max-width: 120px;
    filter: none;
}

.prescription-header h2 {
    font-size: 22px;
    margin: 0;
}

.clinic-info {
    font-size: 12px;
    margin: 10px 0;
    text-align: center;
}

.clinic-info p {
    margin: 2px 0;
}

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

.form-section h3 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.doctor-info p {
    font-size: 14px;
    margin: 5px 0;
}

.doctor-info p strong {
    font-size: 16px;
}

.doctor-info p em {
    font-style: italic;
    color: #555;
}

.prescription-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.prescription-table th, .prescription-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    font-size: 12px;
    text-align: left;
    vertical-align: middle;
}

.prescription-table th {
    background: var(--primary-color);
    color: #fff;
    font-weight: bold;
}

.prescription-table select, .prescription-table input, .prescription-table textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 12px;
}

.prescription-table textarea {
    resize: none;
    height: 40px;
}

.prescription-table td:nth-child(5) {
    min-width: 120px; /* Wider notes column */
}

.table-wrapper {
    overflow-x: auto;
}

.instructions textarea {
    font-size: 12px;
    padding: 8px;
}

.action-buttons {
    margin-top: 20px;
}

.action-buttons .btn {
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 6px;
}

.action-buttons .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.action-buttons .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

@media (max-width: 768px) {
    .prescription-container {
        padding: 15px;
    }
    .prescription-table th, .prescription-table td {
        font-size: 10px;
        padding: 6px;
    }
    .prescription-header img {
        max-width: 100px;
    }
    .prescription-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .prescription-header {
        flex-direction: column;
        gap: 10px;
    }
    .form-section h3 {
        font-size: 16px;
    }
    .action-buttons .btn {
        width: 100%;
        margin: 8px 0;
    }
    .prescription-table {
        font-size: 9px;
    }
}
