/* =========================
 * Islamska UPN QR Plugin CSS
 * Moderni styling za UPN formu
 * ========================= */

/* Reset i osnovni stilovi */
.upn-qr-container * {
    box-sizing: border-box;
}

/* Main container */
.upn-qr-container {
    max-width: 1200px;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Notification bar */
.upn-notification {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 16px 20px;
    margin-bottom: 0;
    font-size: 14px;
    color: #1565c0;
    line-height: 1.4;
}

/* Main grid layout */
.upn-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

/* Form section */
.upn-form-section {
    background: white;
    padding: 30px;
    border-right: 1px solid #e0e0e0;
}

.upn-form-header {
    margin: 0 0 25px 0;
    color: #1b5e20;
    font-size: 24px;
    font-weight: 600;
}

/* Form table replacement */
.upn-form-table {
    width: 100%;
    display: grid;
    gap: 18px;
}

.upn-form-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    align-items: center;
}

.upn-form-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Input stilovi */
.upn-input,
.upn-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.upn-input:focus,
.upn-select:focus {
    outline: none;
    border-color: #1b5e20;
    box-shadow: 0 0 0 2px rgba(27, 94, 32, 0.1);
}

.upn-input:hover,
.upn-select:hover {
    border-color: #4caf50;
}

.upn-input::placeholder {
    color: #999;
}

/* Amount input s euro simbolom */
.upn-amount-wrapper {
    position: relative;
}

.upn-amount-input {
    padding-right: 35px;
}

.upn-euro-symbol {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 600;
    pointer-events: none;
}

/* Info box */
.upn-info-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 12px;
    color: #0c5460;
    line-height: 1.4;
}

/* Submit button */
.upn-submit-btn {
    background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.upn-submit-btn:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(27, 94, 32, 0.3);
}

/* Email section */
.upn-email-section {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    border: 1px solid #e9ecef;
}

.upn-email-label {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.upn-email-input {
    font-size: 12px;
    padding: 4px 8px;
    margin-top: 4px;
}

/* Preview section */
.upn-preview-section {
    background: #fafafa;
    padding: 30px;
}

.upn-preview-box {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: white;
    padding: 16px;
    min-height: 400px;
}

/* Default preview message */
.upn-preview-placeholder {
    padding: 10px 12px;
    background: #eef7ff;
    border: 1px solid #cfe6ff;
    border-radius: 6px;
    color: #1565c0;
    font-size: 14px;
    line-height: 1.4;
}

/* Generated preview */
.upn-generated-preview .upn-preview-title {
    margin: 0 0 8px;
    color: #1b5e20;
    font-size: 18px;
    font-weight: 600;
}

.upn-preview-content {
    border: 2px solid #000;
    padding: 16px;
    border-radius: 6px;
    background: white;
}

.upn-preview-section-title {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.upn-preview-section-content {
    margin: 0 0 15px;
    line-height: 1.4;
    font-size: 13px;
    color: #555;
}

.upn-qr-image {
    width: 200px;
    height: 200px;
    border: 1px solid #000;
    display: block;
    margin: 10px 0;
    border-radius: 4px;
}

.upn-pdf-link {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.upn-pdf-link:hover {
    background: linear-gradient(135deg, #1565c0 0%, #2196f3 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
    color: white;
    text-decoration: none;
}

/* Status messages */
.upn-status-message {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.upn-status-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.upn-status-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .upn-main-grid {
        grid-template-columns: 1fr;
    }

    .upn-form-section {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .upn-form-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .upn-form-section,
    .upn-preview-section {
        padding: 20px;
    }

    .upn-qr-image {
        width: 150px;
        height: 150px;
    }

    .upn-form-header {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .upn-qr-container {
        margin: 10px 0;
        border-radius: 8px;
    }

    .upn-form-section,
    .upn-preview-section {
        padding: 15px;
    }
}