/* Common CSS for all tools */

/* Tool Card and Layout */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-title {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Tool Description Section */
.tool-description {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.tool-description h2 {
    color: #0d6efd;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tool-description h3 {
    color: #495057;
    margin: 15px 0 10px;
    font-size: 1.25rem;
}

.tool-description ul {
    list-style-type: none;
    padding-left: 0;
}

.tool-description li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tool-description li:before {
    content: "•";
    color: #0d6efd;
    position: absolute;
    left: 0;
}

/* Form Controls Styling */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #343a40;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buttons Styling */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

/* Ad Containers */
.ad-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.ad-container.sidebar-ad {
    margin-bottom: 2rem;
}

.ad-container.content-ad {
    margin: 2rem 0;
}

.ad-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.ad-space {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border-radius: 4px;
}

/* Notification System */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.error {
    background-color: #dc3545;
}

.notification.info {
    background-color: #17a2b8;
}

.notification.warning {
    background-color: #ffc107;
    color: #212529;
}

/* FAQ Accordion Styling */
.accordion {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    background-color: #f8f9fa;
    color: #212529;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #e9ecef;
}

.accordion-body {
    padding: 1.25rem;
    background-color: white;
}

/* Output Containers */
.output-container {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* File Dropzone */
.dropzone {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    margin-bottom: 1.5rem;
}

.dropzone:hover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.dropzone i {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.dropzone h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Related Tools Section */
.related-tools h3 {
    color: #0d6efd;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.related-tools ul {
    list-style-type: none;
    padding-left: 0;
}

.related-tools li {
    margin-bottom: 0.75rem;
}

.related-tools a {
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.related-tools a:hover {
    color: #0d6efd;
    transform: translateX(5px);
}

.related-tools i {
    color: #0d6efd;
    font-size: 1rem;
}

/* How to Use Section */
.how-to-use ol {
    padding-left: 1.5rem;
}

.how-to-use li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Loading Indicators */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.spinner-border {
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }
    
    .tool-description, .ad-container {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    h1.card-title {
        font-size: 1.75rem;
    }
    
    .tool-description h2 {
        font-size: 1.35rem;
    }
    
    .tool-description h3 {
        font-size: 1.15rem;
    }
} 