/* Tool Page Specific Styles */

/* Tool Hero Section */
.tool-hero {
    padding: 10px 0;
    background-color: var(--primary-orange);
    color: white;
    text-align: center;
}

.tool-hero h1 {
    font-size: 18px;
    margin-bottom: 15px;
}

.tool-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
}

/* Tool Container */
.tool-container {
    padding: 0px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 0px;
}

.tool-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    margin: 40px auto 40px auto;
}

/* Upload Area */
.upload-area {
    border: none;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #FCECDD;
    max-width: 600px;
    margin: auto;
}

.upload-area.active {
    background-color: #fce4d0;
}

.upload-icon {
    font-size: 48px;
    color: #FF7A00;
    margin-bottom: 20px;
    display: block;
}

.upload-text h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.upload-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.upload-text .browse-text {
    color: #FF7A00;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* File List */
.file-list {
    margin-bottom: 30px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
}

.file-item:hover {
    background-color: #f9f9f9;
}

.file-info {
    display: flex;
    align-items: center;
}

.file-icon {
    font-size: 24px;
    color: var(--primary-orange);
    margin-right: 15px;
}

.file-name {
    font-weight: 500;
}

.file-size {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 10px;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.file-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    transition: var(--transition);
}

.file-actions button:hover {
    color: var(--primary-orange);
}

/* Tool Options */
.tool-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.option-group {
    margin-bottom: 20px;
    min-width: 200px;
}

.option-group h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    background-color: #FCECDD;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
    background-color: #fff;
}

.direction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-orange);
    margin: 0 10px;
}

/* Code Editors */
.code-editors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.editor-container {
    border: none;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: #FCECDD;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fce4d0;
    padding: 10px 15px;
    border-bottom: none;
}

.editor-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    background-color: #e0e0e0;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.editor-actions button {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.editor-actions button:hover {
    background-color: #e0e0e0;
}

.editor-wrapper {
    height: 400px;
    overflow-y: auto;
}

.CodeMirror {
    height: 100%;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
}

/* Tool Actions */
.tool-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tool-actions button {
    background: none;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    background-color: #FCECDD;
}

.tool-actions button:hover {
    background-color: #fce4d0;
}

/* Error and Info Messages */
.error-message, .info-message {
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin: 20px 0;
    border: none;
    box-shadow: none;
}

.error-message {
    background-color: #ffeff0;
    color: #e53935;
}

.info-message {
    background-color: #e8f5e9;
    color: #43a047;
}

.hidden {
    display: none;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    width: 0;
    height: 20px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-orange);
    border-radius: 8px;
    transition: width 0.3s;
}

.progress-info {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* Tool Buttons */
.tool-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.tool-buttons button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
}

.tool-buttons button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.convert-btn {
    background-color: var(--primary-orange);
    color: white;
}

.convert-btn:hover:not(:disabled) {
    background-color: #e65100;
    transform: translateY(-2px);
}

.reset-btn {
    background-color: #f0f0f0;
    color: var(--text-dark);
}

.reset-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.download-btn {
    background-color: #4CAF50;
    color: white;
}

.download-btn:hover:not(:disabled) {
    background-color: #45a049;
}

/* Tool Section */
.tool-section {
    padding: 60px 0;
    position: relative;
}

/* Tool Info Section */
.tool-info {
    max-width: 800px;
    margin: 0 auto;
}

.tool-info h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.tool-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-orange);
}

.tool-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.tool-info ul, .tool-info ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.tool-info li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.info-card {
    background-color: #FCECDD;
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    border: none;
    box-shadow: none;
}

.info-card:hover {
    transform: scale(1.05);
    background-color: var(--primary-orange);
    color: white;
}

.info-card:hover h3, .info-card:hover p {
    color: white;
}

.info-icon {
    font-size: 24px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    color: white;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease-in-out;
}

.info-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.info-card p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .code-editors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tool-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .direction-icon {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .option-group {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Tool Features */
.tool-features {
    padding: 0px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #FCECDD;
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    border: none;
    box-shadow: none;
}

.feature-item:hover {
    transform: scale(1.05);
    background-color: var(--primary-orange);
    color: white;
}

.feature-item:hover h3,
.feature-item:hover .feature-icon {
    color: white;
}

.feature-icon {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.feature-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* How to Use Section */
.how-to-use {
    padding: 60px 0;
    background-color: #fff;
}

.how-to-use::before, .how-to-use::after {
    display: none !important;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background-color: #fff;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    width: 235px;
    height: 287.2px;
}

.step-card:hover {
    transform: scale(1.05);
    background-color: var(--primary-orange);
    color: white;
}

.step-card:hover h3, .step-card:hover p {
    color: white;
}

.step-card-icon {
    font-size: 32px;
    color: var(--primary-orange);
    margin-bottom: 20px;
    background-color: var(--light-orange);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}

.step-card:hover .step-card-icon {
    background-color: var(--primary-orange);
    color: white;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

.step-card p.language-converter {
    margin-bottom: 15px;
}

/* Text Case Converter Specific Styles */
.text-area-container {
    margin-bottom: 20px;
    position: relative;
}

.text-area {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    background-color: #FCECDD;
}

.text-area:focus {
    outline: none;
    box-shadow: none;
    background-color: #fff;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.case-option {
    background-color: #f5f5f5;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.case-option:hover {
    background-color: #FCECDD;
    transform: translateY(-2px);
}

.case-option.active {
    background-color: var(--primary-orange);
    color: white;
}

.case-option h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.case-option p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.text-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius-sm);
}

.text-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.text-stat i {
    color: var(--primary-orange);
}

.sample-text-btn {
    background: none;
    border: none;
    color: var(--primary-orange);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
} 

/* Converted Files Results Cards */
.results-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.file-result-card {
    background-color: #FCECDD;
    border-radius: 30px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.file-result-card:hover {
    transform: scale(1.05);
    background-color: #fce4d0;
}

.file-result-icon {
    font-size: 32px;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.file-result-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    word-break: break-all;
    color: var(--text-dark);
}

.file-result-size {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.file-download-btn {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.file-download-btn:hover {
    background-color: #e06e00;
    transform: translateY(-2px);
}

.file-download-btn i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .results-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .file-result-card {
        padding: 15px;
    }
    
    .file-result-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .results-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .file-result-card {
        padding: 12px;
    }
    
    .file-download-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
} 