.psu-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}
/* Main container for the two-column layout */
.psu-calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.psu-calculator-form{
    width: 100%;
    align-items: center;
    align-content: center;
    text-align: center;
    margin: 0;

    justify-content: space-between; 
    border: 2px solid transparent; 
    border-radius: 14px; 
    padding: 20px; 
    margin-bottom: 18px; 
    background: #fafaf8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative; 
    overflow: hidden; 
    transition: all 0.25s ease; 
    border-image: linear-gradient(90deg, #f21197, #3DE0C8) 1;
}

/* Column containers */
.psu-selection-column {
    display: flex;
    flex-direction: column;
}

.psu-results-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form header styling */
.psu-calculator-form h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
    text-align: center;
    font-weight: 600;
}

.psu-results{
    width: 100%;
    align-items: center;
    align-content: center;
    text-align: center;
    margin: 20px 0 0 0;
}

.label-psu{
    text-align: left;
}

.psu-btn{
    background-color: #030d36;
    color: antiquewhite;
}

/* PSU Row Layout */
.psu-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.psu-row:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.psu-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.psu-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.psu-title {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    flex: 2;
}

.psu-watt {
    font-weight: bold;
    color: #0071a1;
    margin: 0;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.psu-price {
    font-weight: bold;
    color: #28a745;
    margin: 0;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.psu-row .button {
    padding: 8px 16px;
    background: #FFF;
    border: 1px solid #0071a1 !important;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 100px;
    text-align: center;
}

.psu-row .button:hover {
    background: #005f87;
}

.component-details {
    margin-top: 5px;
    padding: 5px;
    border-left: 3px solid #0071a1;
}

.component-details img {
    display: block;
    margin-bottom: 5px;
    max-width: 100%;
    height: auto;
    align-self: center;
    margin: auto;
}

/* Total Wattage Display */
.total-wattage-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.total-wattage-display h3 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 600;
    color: white;
}

.wattage-breakdown {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.wattage-breakdown p {
    margin: 5px 0;
    font-size: 1.1em;
}

.wattage-breakdown span {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2em;
}

/* Status messages */
.calculating, .no-selection, .error {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.calculating {
    background: rgba(255, 255, 255, 0.9);
    color: #1976d2;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.no-selection {
    background: rgba(255, 255, 255, 0.9);
    color: #7b1fa2;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.error {
    background: rgba(255, 255, 255, 0.9);
    color: #c62828;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 1024px) {
    .psu-calculator-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .wattage-breakdown {
        flex-direction: column;
        align-items: center;
    }
    
    .wattage-breakdown p {
        margin: 5px 0;
    }
    
    .psu-calculator-container {
        padding: 10px;
    }
    
    .psu-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .psu-image {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .psu-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .psu-title {
        flex: none;
        width: 100%;
    }
    
    .psu-watt, .psu-price {
        min-width: auto;
        text-align: left;
    }
    
    .psu-row .button {
        width: 100%;
        min-width: auto;
    }
}