/* Putni Troškovi Kalkulator - Styles */

.putni-troskovi-kalkulator {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.ptk-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ptk-naslov {
    color: #0066cc;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066cc;
}

.ptk-section-title {
    color: #0066cc;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.ptk-form-group {
    margin-bottom: 20px;
}

.ptk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .ptk-form-row {
        grid-template-columns: 1fr;
    }
}

.ptk-label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.ptk-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.ptk-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ptk-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.ptk-hint {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.ptk-radio-group {
    display: flex;
    gap: 20px;
}

.ptk-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.ptk-radio input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.ptk-radio span {
    color: #333;
}

.ptk-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.ptk-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ptk-btn-primary {
    background-color: #0066cc;
    color: white;
}

.ptk-btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.ptk-btn-primary:active {
    transform: translateY(0);
}

.ptk-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.ptk-btn-secondary:hover {
    background-color: #e0e0e0;
}

.ptk-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Rezultat */
.ptk-rezultat {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.ptk-rezultat-naslov {
    color: #0066cc;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.ptk-info-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0066cc;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.ptk-info-box p {
    margin: 8px 0;
    color: #333;
    font-size: 14px;
}

.ptk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.ptk-table thead {
    background-color: #f8f9fa;
}

.ptk-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    font-size: 14px;
}

.ptk-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    font-size: 14px;
}

.ptk-table tbody tr:hover {
    background-color: #f8f9fa;
}

.ptk-text-right {
    text-align: right;
}

.ptk-subtotal {
    background-color: #e6f2ff;
}

.ptk-subtotal td {
    font-weight: 600;
    color: #0066cc;
    border-top: 2px solid #0066cc;
}

.ptk-total {
    background-color: #cce5ff;
}

.ptk-total td {
    font-weight: 700;
    color: #0052a3;
    font-size: 16px;
    border-top: 2px solid #0066cc;
    border-bottom: 2px solid #0066cc;
}

.ptk-disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #856404;
    font-size: 13px;
}

.ptk-disclaimer strong {
    color: #856404;
}

/* Loading spinner */
.ptk-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error messages */
.ptk-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
}

/* Success messages */
.ptk-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 20px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .ptk-container {
        padding: 20px;
    }
    
    .ptk-naslov {
        font-size: 22px;
    }
    
    .ptk-form-actions {
        flex-direction: column;
    }
    
    .ptk-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ptk-table {
        font-size: 13px;
    }
    
    .ptk-table th,
    .ptk-table td {
        padding: 8px 10px;
    }
}

/* Print styles */
@media print {
    .ptk-form-actions,
    #putni-troskovi-form {
        display: none;
    }
    
    .ptk-container {
        box-shadow: none;
        border: none;
    }
}