/* Tool Page Specific Styles */

.tool-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.tool-header h2 {
    color: #444;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: #666;
}

.tool-instructions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.tool-instructions h3 {
    margin-bottom: 1rem;
    color: #444;
}

.tool-instructions ol, .tool-instructions ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.tool-instructions li {
    margin-bottom: 0.5rem;
}

/* Calculator Styles */
.calculator {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator-display {
    background-color: #333;
    color: white;
    padding: 1rem;
}

.calculator-display input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    text-align: right;
    outline: none;
    padding: 0.5rem;
}

.calculator-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1px;
    background-color: #ddd;
}

.calculator-keys button {
    border: none;
    background-color: white;
    padding: 1.5rem 0;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calculator-keys button:hover {
    background-color: #f0f0f0;
}

.key-operator {
    background-color: #f8f9fa !important;
    color: #5c2178;
    font-weight: bold;
}

.key-equal {
    background: linear-gradient(135deg, #5c2178 0%, #1f0b28 100%) !important;
    color: white;
    grid-column: span 1;
}

.key-clear, .key-sign, .key-percent {
    background-color: #f0f0f0 !important;
}

.key-zero {
    grid-column: span 2;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
}

.notification.error {
    background-color: #f44336;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Styles for Tools */
@media (max-width: 768px) {
    .tool-container {
        padding: 1.5rem;
    }
    
    .calculator {
        max-width: 100%;
    }
    
    .calculator-keys button {
        padding: 1.2rem 0;
    }
}

@media (max-width: 480px) {
    .tool-container {
        padding: 1rem;
    }
    
    .calculator-display input {
        font-size: 1.5rem;
    }
    
    .calculator-keys button {
        padding: 1rem 0;
        font-size: 1rem;
    }
}

/* Animation for tool pages */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-container {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Styles for other tools */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.input-group textarea {
    min-height: 100px;
    resize: vertical;
}

.result-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #5c2178;
}

.tool-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tool-actions .btn {
    min-width: 120px;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}