/* ZZP Kwitantie Generator Styling */

.zzp-kwitantie-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.zzp-kwitantie-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FF8C00;
}

.zzp-kwitantie-header h2 {
    color: #FF8C00;
    font-size: 26px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.zzp-kwitantie-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.zzp-form {
    width: 100%;
}

.form-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #fffaf0;
    border-radius: 6px;
    border-left: 3px solid #FF8C00;
}

.form-section h3 {
    color: #333;
    font-size: 16px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 12px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: #FF8C00;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    margin-left: 4px;
    position: relative;
}

.info-tooltip {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 0;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s;
}

.info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.info-icon:hover .info-tooltip {
    visibility: visible;
    opacity: 1;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-actions {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-generate {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7700 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 140, 0, 0.3);
}

.btn-generate:hover {
    background: linear-gradient(135deg, #FF7700 0%, #FF6600 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.zzp-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .zzp-kwitantie-container {
        padding: 15px;
        margin: 10px;
    }
    
    .zzp-kwitantie-header h2 {
        font-size: 22px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 12px;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .btn-generate {
        width: 100%;
        padding: 11px 30px;
        font-size: 15px;
    }
    
    .info-tooltip {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .zzp-kwitantie-container {
        padding: 12px;
    }
    
    .zzp-kwitantie-header h2 {
        font-size: 20px;
    }
    
    .form-section h3 {
        font-size: 15px;
    }
}

/* Print styling */
@media print {
    .zzp-kwitantie-container {
        box-shadow: none;
    }
}

/* Extra styling voor factuur items */
.form-row-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.invoice-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.invoice-item:hover {
    border-color: #FF8C00;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.item-header strong {
    color: #FF8C00;
    font-size: 14px;
}

.btn-remove-item {
    background: #d63638;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.3s;
}

.btn-remove-item:hover {
    background: #c02a2c;
}

.btn-remove-item span:first-child {
    font-size: 18px;
    font-weight: bold;
}

.item-description {
    flex: 2;
}

.btn-add-item {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7700 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.btn-add-item:hover {
    background: linear-gradient(135deg, #FF7700 0%, #FF6600 100%);
    transform: translateY(-1px);
}

.btn-add-item span:first-child {
    font-size: 18px;
    font-weight: bold;
}

.totals-display {
    background: #fffaf0;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.total-row.total-final {
    border-top: 2px solid #FF8C00;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 16px;
}

.total-row.total-final strong {
    color: #FF8C00;
    font-size: 18px;
}

select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

@media (max-width: 768px) {
    .form-row-three {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row-three .form-group {
        margin-bottom: 12px;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
