/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Form styles */
.form-container {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input[type="file"],
input[type="text"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

small {
    display: block;
    color: #666;
    margin-top: 4px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}
/* Add this to the existing CSS file to support Tab Delivery Sheet */

/* Tab Delivery Sheet styles */
.delivery-sheet-preview {
    width: 100%;
    max-width: 280px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: white;
    overflow: auto;
}

.delivery-table-preview {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.delivery-table-preview th,
.delivery-table-preview td {
    border: 1px solid #ddd;
    padding: 4px;
    text-align: left;
}

.delivery-table-preview th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.delivery-table-preview tr:nth-child(even) {
    background-color: #f9f9f9;
}

.delivery-table-preview th:first-child,
.delivery-table-preview td:first-child {
    width: 10%;
    text-align: center;
}

.delivery-table-preview th:nth-child(2),
.delivery-table-preview td:nth-child(2) {
    width: 30%;
}

.delivery-table-preview th:nth-child(3),
.delivery-table-preview td:nth-child(3) {
    width: 15%;
    text-align: center;
}

.delivery-table-preview th:nth-child(4),
.delivery-table-preview td:nth-child(4) {
    width: 20%;
    text-align: center;
}

.delivery-table-preview th:nth-child(5),
.delivery-table-preview td:nth-child(5),
.delivery-table-preview th:nth-child(6),
.delivery-table-preview td:nth-child(6) {
    width: 12.5%;
    text-align: center;
}

/* Adjust preview container for Tab Delivery Sheet */
#tab-delivery-preview {
    width: 100%;
}
/* Preview styles */
.preview {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview h3 {
    margin-bottom: 15px;
}

.preview-card {
    width: 280px;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.preview-header {
    background-color: #1f4e78;
    color: white;
    padding: 5px 10px;
    text-align: center;
    font-size: 14px;
}

.preview-content {
    display: flex;
    padding: 10px;
}

.preview-info {
    flex: 2;
}

.preview-name {
    color: #0047ab;
    font-weight: bold;
    font-size: 14px;
}

.preview-phone {
    font-size: 14px;
}

.preview-class {
    color: #e63946;
    font-weight: bold;
    font-size: 14px;
}

.preview-qr {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-placeholder {
    width: 60px;
    height: 60px;
    background-color: #eee;
    background-image: 
        linear-gradient(45deg, #ddd 25%, transparent 25%), 
        linear-gradient(-45deg, #ddd 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #ddd 75%), 
        linear-gradient(-45deg, transparent 75%, #ddd 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

.preview-footer {
    background-color: #1f4e78;
    color: white;
    padding: 5px 10px;
    text-align: center;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    width: 100%;
}
/* Alert messages */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}
/* Instructions */
.instructions {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.instructions h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        flex-direction: column;
    }
    
    .form-container {
        padding-right: 0;
        margin-bottom: 30px;
    }
}
/* Add this to the existing CSS file to support small card size */

/* Small size card specific styles */
.preview-card.small-size {
    height: 150px;
}

.preview-card.small-size .preview-content {
    padding: 5px 10px;
}

.preview-card.small-size .preview-qr {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-card.small-size .qr-placeholder {
    width: 50px;
    height: 50px;
}

.preview-card.small-size .preview-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-card.small-size .preview-name,
.preview-card.small-size .preview-phone,
.preview-card.small-size .preview-class {
    margin-bottom: 2px;
}