/* GSTZen module styles */

.gstzen-json-preview {
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fafafa;
    padding: 15px;
    max-height: 600px;
    overflow: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.gstzen-json-preview pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.gstzen-json-preview code {
    color: #333;
}
.gstzen-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gstzen-processing-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
}

.gstzen-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: gstzen-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes gstzen-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gstzen-processing-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.gstzen-processing-subtext {
    font-size: 14px;
    color: #666;
}

.gstzen-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.gstzen-status-pending {
    background-color: #ffc107;
    color: #212529;
}

.gstzen-status-accepted {
    background-color: #28a745;
    color: white;
}

.gstzen-status-rejected {
    background-color: #dc3545;
    color: white;
}

.gstzen-status-failed {
    background-color: #6c757d;
    color: white;
}

.gstzen-status-cancelled {
    background-color: #17a2b8;
    color: white;
}

.gstzen-qrcode {
    max-width: 150px;
    height: auto;
    border: 1px solid #dee2e6;
    padding: 5px;
    background: white;
}

.gstzen-info-box {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.gstzen-warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.gstzen-error-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.gstzen-success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.gstzen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gstzen-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gstzen-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.gstzen-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.gstzen-modal-icon-success {
    background: #28a74520;
}

.gstzen-modal-icon-warning {
    background: #ffc10720;
}

.gstzen-modal-icon-error {
    background: #dc354520;
}

.gstzen-modal-title {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.gstzen-modal-body {
    margin-bottom: 25px;
}

.gstzen-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.gstzen-button {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.gstzen-button-primary {
    background: #007bff;
    color: white;
}

.gstzen-button-primary:hover {
    background: #0056b3;
}

.gstzen-button-success {
    background: #28a745;
    color: white;
}

.gstzen-button-success:hover {
    background: #1e7e34;
}

.gstzen-button-warning {
    background: #ffc107;
    color: #212529;
}

.gstzen-button-warning:hover {
    background: #e0a800;
}

.gstzen-button-danger {
    background: #986fa3;
    color: white;
}

.gstzen-button-danger:hover {
    background: #c82333;
}

.gstzen-button-secondary {
    background: #6c757d;
    color: white;
}

.gstzen-button-secondary:hover {
    background: #545b62;
}

/* Invoice card styles */
.gstzen-invoice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.gstzen-invoice-info {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.gstzen-irn-display {
    font-family: monospace;
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 10px;
}

.gstzen-ewaybill-display {
    font-family: monospace;
    background: #d4edda;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 10px;
}

/* Table styles */
.gstzen-table {
    width: 100%;
    border-collapse: collapse;
}

.gstzen-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
}

.gstzen-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.gstzen-table tr:hover {
    background: #f8f9fa;
}

/* Form styles */
.gstzen-form-group {
    margin-bottom: 15px;
}

.gstzen-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.gstzen-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.gstzen-form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .gstzen-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .gstzen-modal-footer {
        flex-direction: column;
    }
    
    .gstzen-button {
        width: 100%;
        text-align: center;
    }
    
    .gstzen-invoice-actions {
        flex-direction: column;
    }
}