/* Main Container */
.trig-calc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Title Styles */
.trig-calc-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: 700;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Description */
.trig-calc-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

/* Mode Selection */
.trig-calc-mode {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.mode-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #7f8c8d;
}

.mode-btn.active {
    background: #3498db;
    color: white;
}

/* Input Section */
.trig-calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.calc-button {
    grid-column: span 2;
    padding: 14px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.calc-button:hover {
    background: #27ae60;
}

/* Result Section */
.trig-calc-result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.trig-calc-result h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.result-display {
    font-size: 2.5em;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
}

.formula-display {
    font-family: 'Courier New', monospace;
    color: #3498db;
    font-size: 1.2em;
}

/* Reference Table */
.trig-calc-reference {
    margin-bottom: 30px;
}

.trig-calc-reference h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.reference-table th,
.reference-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.reference-table th {
    background-color: #3498db;
    color: white;
}

.reference-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* SEO Content */
.trig-calc-seo-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.trig-calc-seo-content h2 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.trig-calc-seo-content h3 {
    color: #2c3e50;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trig-calc-inputs {
        grid-template-columns: 1fr;
    }
    
    .calc-button {
        grid-column: span 1;
    }
    
    .trig-calc-container {
        padding: 20px;
    }
}