/* PDF Printshop Calculator Pro - Styles */

.pdf-upload-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pdf-upload-container h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

/* File Input */
.file-input-wrapper {
    position: relative;
    margin: 20px 0;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-wrapper label {
    display: block;
    padding: 20px;
    background: #fff;
    border: 2px dashed #007cba;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #007cba;
    font-weight: 500;
}

.file-input-wrapper label:hover {
    background: #f0f6fc;
    border-color: #0056b3;
}

/* Buttons */
.pdf-upload-container button {
    min-width: 200px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.button-primary {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.button-primary:hover:not(:disabled) {
    background: #0056b3;
    border-color: #0056b3;
}

.button {
    background: #f0f0f0;
    border: 1px solid #999;
    color: #333;
    cursor: pointer;
    padding: 8px 16px;
}

.button:hover:not(:disabled) {
    background: #e0e0e0;
}

.button.disabled,
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result */
.pdf-result {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-preview {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.pdf-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stats Table */
.pdf-stats {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.pdf-stats tr {
    border-bottom: 1px solid #e0e0e0;
}

.pdf-stats tr:last-child {
    border-bottom: none;
}

.pdf-stats td {
    padding: 12px 8px;
    vertical-align: middle;
}

.pdf-stats td:first-child {
    text-align: left;
    color: #666;
    font-weight: 500;
    width: 50%;
}

.pdf-stats td:last-child {
    text-align: right;
    color: #333;
}

.pdf-stats strong {
    color: #000;
    font-weight: 600;
}

.pdf-stats .total-row {
    background: #f0f6fc;
    border-top: 2px solid #007cba;
    border-bottom: 2px solid #007cba;
    font-weight: 600;
}

.pdf-stats .total-row td:first-child {
    color: #007cba;
}

.pdf-stats .total-row td:last-child {
    color: #007cba;
    font-size: 16px;
}

/* Warnings */
.pdf-warnings {
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    animation: slideIn 0.3s ease;
}

.warning-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.warning-item {
    background: white;
    padding: 15px;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
}

.warning-title {
    font-weight: 600;
    color: #e65100;
    margin-bottom: 8px;
    font-size: 15px;
}

.warning-message {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.warning-help {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.warning-help strong {
    color: #333;
}

/* Warning Accept Checkbox */
.warning-accept {
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.warning-accept label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.warning-accept input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Error */
.pdf-error {
    padding: 15px;
    background: #fee;
    border-left: 4px solid #c33;
    color: #c33;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: 500;
}

/* Loading */
.pdf-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .pdf-upload-container {
        margin: 15px;
        padding: 15px;
    }

    .pdf-stats td {
        padding: 10px 4px;
        font-size: 13px;
    }

    .pdf-upload-container button {
        width: 100%;
        min-width: auto;
    }

    .warning-item {
        padding: 12px;
    }

    .warning-title {
        font-size: 14px;
    }

    .warning-help {
        font-size: 12px;
    }
}
