/* General Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
}

/* Search Section */
.search-section {
    background-color: var(--light-color);
    padding: 2rem 0;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.search-section .form-control {
    border-radius: 2rem 0 0 2rem;
    padding-left: 1.5rem;
}

.search-section .btn {
    border-radius: 0 2rem 2rem 0;
    padding-right: 1.5rem;
}

/* Card Styles */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Tool Categories */
.categories-section {
    padding: 2rem 0;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Ad Placeholders */
.ad-placeholder {
    background-color: var(--light-color);
    border: 2px dashed var(--secondary-color);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.2s ease-in-out;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .search-section {
        padding: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Tool Page Specific Styles */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-description {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* Loading States */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .container {
        width: 100%;
        max-width: none;
    }
}

/* Tool Cards */
.tool-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00897b;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Buttons */
.btn-primary {
    background-color: #00897b;
    border-color: #00897b;
}

.btn-primary:hover {
    background-color: #00695c;
    border-color: #00695c;
}

.btn-outline-primary {
    color: #00897b;
    border-color: #00897b;
}

.btn-outline-primary:hover {
    background-color: #00897b;
    border-color: #00897b;
}

/* Tables */
.table-responsive {
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    overflow: hidden;
}

.table th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
}

/* Error Messages */
.error-message {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Statistics Container */
.stats-container {
    background-color: var(--light-color);
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Pattern Library */
.pattern-library {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.pattern-library .list-group-item {
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.pattern-library .list-group-item:first-child {
    border-top: none;
}

.pattern-library .list-group-item:last-child {
    border-bottom: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .tool-card {
        margin-bottom: 1rem;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stats-container > div {
        margin-bottom: 0.5rem;
    }
}

/* Category Title Styles */
.category-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #00897b;
}

/* Badge Styles */
.category-badge {
    background-color: #e8f5e9;
    color: #00897b;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffd700;
    color: #000;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Tool Options */
.tool-options {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Action Buttons */
.action-buttons {
    margin-top: 20px;
}

.action-buttons .btn {
    margin: 0 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #00897b 0%, #004d40 100%);
    color: white;
    padding: 80px 0;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto;
} 