/* Main container */
.pmo-matrix-calculator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Title */
.pmo-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.pmo-title i {
    margin-right: 10px;
    color: #3498db;
}

/* Tabs */
.pmo-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.pmo-tab {
    padding: 10px 20px;
    background: #f1f1f1;
    border: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #555;
}

.pmo-tab:hover {
    background: #e1e1e1;
}

.pmo-tab.active {
    background: #3498db;
    color: white;
}

/* Tab content */
.pmo-tab-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pmo-tab-content.active {
    display: block;
}

/* Form elements */
.pmo-form-group {
    margin-bottom: 15px;
}

.pmo-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.pmo-form-group label i {
    margin-right: 8px;
    color: #3498db;
}

.pmo-select, .pmo-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pmo-dimensions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.pmo-dimension {
    flex: 1;
}

/* Buttons */
.pmo-button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pmo-button:hover {
    background-color: #2980b9;
}

.pmo-button i {
    margin-right: 8px;
}

.pmo-reset-button {
    background-color: #e74c3c;
    margin-left: 10px;
}

.pmo-reset-button:hover {
    background-color: #c0392b;
}

.pmo-actions {
    margin-top: 20px;
    text-align: center;
}

/* Matrix display */
.pmo-matrix-container {
    margin: 15px 0;
    overflow-x: auto;
}

.pmo-matrix-row {
    display: flex;
    margin-bottom: 5px;
}

.pmo-matrix-cell {
    width: 60px;
    padding: 8px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.pmo-matrix-cell:last-child {
    margin-right: 0;
}

/* Result display */
.pmo-result-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.pmo-result {
    margin-top: 10px;
}

.pmo-scalar-result {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.pmo-result-label {
    font-weight: 600;
    margin-right: 10px;
    color: #3498db;
}

.pmo-result-value {
    color: #27ae60;
}

.matrix-display {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background-color: white;
}

.matrix-display.scalar {
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
}

.matrix-row {
    display: flex;
}

.matrix-cell {
    padding: 5px 10px;
    text-align: center;
    min-width: 40px;
}

/* Loading indicator */
.pmo-loading {
    text-align: center;
    padding: 10px;
    color: #3498db;
}

/* Error message */
.pmo-error {
    margin-top: 15px;
    padding: 10px;
    background-color: #fdecea;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    border-radius: 4px;
    display: none;
}

.pmo-error i {
    margin-right: 8px;
}

/* Responsive styles */
@media (max-width: 600px) {
    .pmo-tabs {
        flex-direction: column;
    }
    
    .pmo-tab {
        border-radius: 0;
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .pmo-dimensions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pmo-matrix-cell {
        width: 50px;
        padding: 6px;
    }
    
    .pmo-actions {
        display: flex;
        flex-direction: column;
    }
    
    .pmo-reset-button {
        margin-left: 0;
        margin-top: 10px;
    }
}