/* Base Styles */
:root {
    --primary-color: #ffffff;
    --secondary-color: #3a5a8a;
    --dark-color: #272727;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --info-color: #F37B21;
    --border-radius: 4px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Jost", sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
header {
    /* background-color: var(--primary-color); */
    color: rgb(54, 54, 54);
    padding:20px 0;    
    text-align: center;
    box-shadow: var(--shadow);
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

header p {    
    font-size: 22px;
    line-height: 30px;
    padding: 0 100px;
}

/* Main Content Styles */
main {
    padding: 2rem 0;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    /* margin-bottom: 30px; */
    align-items: center;
}

#codeType {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    font-size: 1rem;
    min-width: 150px;
    background-color: white;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

button:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--dark-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--dark-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #BF5813;
}

.btn-file {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--info-color);
    color: white;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-file:hover {
    background-color: #138496;
} */

#fileInput {
    display: none;
}

.file-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    /* margin-left: auto; */
}

.url-loader {
    display: flex;
    gap: 0.5rem;
}

#urlInput {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    min-width: 250px;
}

.editor-container {
    display: flex;
    gap: 1.5rem;
}

.editor-panel {
    flex: 1;
    min-width: 0;
    margin-bottom: 50px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;    
}

.editor-panel h2 {    
    font-size: 25px;
    color: var(--dark-color);
    padding-top: 15px;
}

textarea {
    width: 100%;
    height: 280px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    resize: none;
    background-color: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    line-height: 1.5;
    tab-size: 4;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

#outputCode {
    background-color: #f8f9fa;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--success-color);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.error {
    background-color: var(--danger-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .editor-container {
        flex-direction: column;
    }    
    textarea {
        height: 350px;
    }
    header p {
        padding: 0 40px;
    }
    .editor-panel {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 768px) {
    .file-group {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        width: 100%;
    }

    .url-loader {
        width: 100%;
    }

    #urlInput {
        flex: 1;
        min-width: 0;
    }
    header p {
        padding: 0 0px;
    }
}
@media (max-width: 767px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .whyTool ul {
        height: auto !important;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    #codeType {
        width: 100%;
    }

    .button-group {
        width: 100%;
    }

    .button-group button {
        flex: 1;
        justify-content: center;
    }

    textarea {
        height: 300px;
    }    
}
.facolor {
    color: #2b3a4e;
    padding-right: 10px;
}
.whatcan {
    margin-bottom: 30px;
    text-align: center;
}
.whatcan h2 {
    font-size: 25px;
}
.whatcan ul {
    position: relative;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 10px 0;
}
.whatcan ul li {
    list-style: none;            
    font-size: 16px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 5px;
}
.whyTool {
    /* margin-bottom:30px; */
    text-align: center;    
}
.whyTool ul {
    position: relative;    
    gap: 1.5rem;      
    height: 200px;
    padding: 20px;
}
.whyTool ul li {
    list-style: none;            
    font-size: 16px;    
    font-weight: 600;    
    border-radius: 5px;
    line-height: 30px;
}
.java {
    background-color: #e8d44d;
    color: #2d2d2d;
}
.css3 {
    background-color: #146eb0;
    color: #fff;
}
.html5 {
    background-color: #dd4d26;
    color: #fff;
}
.json {
    background-color: #277aad;
    color: #fff; 
}
.xml {
    background-color: #ea971e;  
    color: #fff;
}
.mBTM {
 margin-bottom: 0;
}
 /* FAQ Container */
 /* Base Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #3a5a8a;
    --text-color: #2b3a4e;
    --light-bg: #f8f9fa;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding:0 20px;
}

.faq-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Accordion Styles */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: "-";
}

.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: white;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .faq-section {
        padding: 10px;
    }

    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 15px;
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {   

    .faq-question {
        padding-right: 35px;
    }
}
.fawcolor {
    color: #fff;
}