/* Kalkulator Szyku Kołowego - Style CSS */

.dpc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dpc-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.dpc-title {
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.dpc-description {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.dpc-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .dpc-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.dpc-form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dpc-form-section h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dpc-form-section h3:before {
    content: "⚙️";
    font-size: 18px;
}

.dpc-field {
    margin-bottom: 20px;
}

.dpc-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.dpc-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dpc-field input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dpc-field small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

.dpc-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.dpc-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dpc-btn-primary {
    background: #3b82f6;
    color: white;
}

.dpc-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.dpc-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.dpc-btn-secondary:hover {
    background: #e2e8f0;
}

.dpc-btn-export {
    background: #059669;
    color: white;
}

.dpc-btn-export:hover:not(:disabled) {
    background: #047857;
}

.dpc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dpc-results-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dpc-visualization {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dpc-visualization h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

#dpc-svg-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}

#dpc-pattern-svg {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fefefe;
    max-width: 100%;
    height: auto;
}

.dpc-table-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dpc-table-container h3 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.dpc-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.dpc-results-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
}

.dpc-results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'Courier New', monospace;
}

.dpc-results-table tr:hover {
    background: #f8fafc;
}

.dpc-results-table .hole-number {
    font-weight: 600;
    color: #1e293b;
    font-family: inherit;
}

.dpc-no-results {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 6px;
    border: 2px dashed #d1d5db;
}

.dpc-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dpc-summary-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.dpc-summary-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.dpc-summary-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.dpc-loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

.dpc-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
}

.dpc-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dpc-results-table,
.dpc-summary {
    animation: fadeIn 0.3s ease-out;
}

/* Responsywność */
@media (max-width: 480px) {
    .dpc-container {
        padding: 15px;
    }
    
    .dpc-buttons {
        flex-direction: column;
    }
    
    .dpc-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dpc-results-table {
        font-size: 14px;
    }
    
    .dpc-results-table th,
    .dpc-results-table td {
        padding: 8px 6px;
    }
}