/* oldcalculator.com Styles - AdSense Friendly */
.calculator-root {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
}

.calculator-main-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.calculator-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}

.calculator-search-section {
    margin-bottom: 40px;
    text-align: center;
}

.calculator-search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-search-input {
    flex: 1;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease;
}

.calculator-search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.calculator-search-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    white-space: nowrap;
}

.calculator-search-button:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.calculator-search-button:active {
    transform: translateY(0);
}

.calculator-search-results {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.calculator-search-results h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: left;
}

.calculator-no-results {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
}

.calculator-no-results p {
    color: #856404;
    margin: 0;
    font-size: 1rem;
}

.calculator-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.calculator-category-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.calculator-category-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.calculator-category-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.calculator-category-link:hover {
    color: #3498db;
    text-decoration: underline;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.calculator-link {
    display: block;
    padding: 12px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    font-weight: 500;
}

.calculator-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.calculator-about-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    text-align: center;
}

.calculator-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Form Styles for Calculator Components */
.calculator-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.calculator-input-group {
    margin-bottom: 20px;
}

.calculator-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.calculator-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.calculator-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

.calculator-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.calculator-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.calculator-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.calculator-button-secondary {
    background: #95a5a6;
}

.calculator-button-secondary:hover {
    background: #7f8c8d;
}

.calculator-result-section {
    background: #e8f6f3;
    border: 2px solid #1abc9c;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.calculator-result-title {
    color: #16a085;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.calculator-result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.calculator-result-details {
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-root {
        padding: 10px;
    }
    
    .calculator-title {
        font-size: 2rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-main-container {
        padding: 15px;
    }
}

/* Scientific Calculator Specific Styles */
.calculator-scientific-container {
    max-width: 400px;
    margin: 0 auto;
    background: #2c3e50;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.calculator-display {
    background: #34495e;
    color: #ecf0f1;
    font-size: 2rem;
    font-family: 'Courier New', monospace;
    text-align: right;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 60px;
    word-wrap: break-word;
}

.calculator-buttons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.calculator-btn {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 50px;
}

.calculator-btn-number {
    background: #3498db;
    color: white;
}

.calculator-btn-number:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.calculator-btn-operator {
    background: #e74c3c;
    color: white;
}

.calculator-btn-operator:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.calculator-btn-function {
    background: #f39c12;
    color: white;
}

.calculator-btn-function:hover {
    background: #e67e22;
    transform: scale(1.05);
}

.calculator-btn-clear {
    background: #95a5a6;
    color: white;
}

.calculator-btn-clear:hover {
    background: #7f8c8d;
    transform: scale(1.05);
}

/* Table Styles for Results */
.calculator-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calculator-table th {
    background: #3498db;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.calculator-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.calculator-table tbody tr:hover {
    background: #f8f9fa;
}

/* Error and Warning Styles */
.calculator-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
}

.calculator-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
}

.calculator-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
}

/* Random Number Generator Styles */
.calculator-random-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.calculator-random-number {
    background: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
}

.calculator-picked-items {
    margin: 15px 0;
}

.calculator-picked-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.calculator-pick-number {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.calculator-pick-item {
    font-size: 1.1rem;
    color: #2c3e50;
}

.calculator-password-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.calculator-password {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #2c3e50;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    flex-grow: 1;
    margin-right: 10px;
}

.calculator-btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calculator-btn-small:hover {
    background: #2980b9;
}

.calculator-password-strength {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.calculator-strength-very-weak { color: #e74c3c; }
.calculator-strength-weak { color: #f39c12; }
.calculator-strength-fair { color: #f1c40f; }
.calculator-strength-good { color: #2ecc71; }
.calculator-strength-strong { color: #27ae60; }
.calculator-strength-very-strong { color: #16a085; }

.calculator-dice-results {
    text-align: center;
    margin: 20px 0;
}

.calculator-dice-notation {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.calculator-dice-individual {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.calculator-dice-total {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e74c3c;
    background: #fff;
    border: 3px solid #e74c3c;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.calculator-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.calculator-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

.calculator-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

/* Responsive Design for Search */
@media (max-width: 768px) {
    .calculator-search-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .calculator-search-input {
        max-width: 100%;
        margin-bottom: 0;
    }
    
    .calculator-search-button {
        width: 100%;
        max-width: 200px;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .calculator-search-container {
        padding: 0 15px;
    }
    
    .calculator-search-input {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .calculator-search-button {
        font-size: 14px;
        padding: 10px 20px;
        max-width: 150px;
    }
}
