/* --- Common/Global Styles --- */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f8fafc; /* slate-50 */
}

.card { 
    background-color: white; 
    border-radius: 0.75rem; 
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); 
}

/* --- Button Styles --- */
.btn-primary { 
    background-color: #2563eb; /* blue-600 */
    color: white; 
    transition: background-color 0.3s ease; 
}
.btn-primary:hover { 
    background-color: #1d4ed8; /* blue-700 */
}
.btn-primary:disabled { 
    background-color: #9ca3af; /* gray-400 */
    cursor: not-allowed; 
}

.btn-secondary { 
    background-color: #e2e8f0; /* slate-200 */
    color: #1e293b; /* slate-800 */
    transition: background-color 0.3s ease; 
}
.btn-secondary:hover { 
    background-color: #cbd5e1; /* slate-300 */
}

.btn-danger { 
    background-color: #dc2626; /* red-600 */
    color: white; 
    transition: background-color: 0.3s ease; 
}
.btn-danger:hover { 
    background-color: #b91c1c; /* red-700 */
}

/* --- Tool-Specific Styles --- */
.drag-area-card.drag-over { 
    transform: scale(1.01); 
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1), 0 0 0 4px #93c5fd; /* blue-300 ring */
}

.drag-area { 
    border: 2px dashed #cbd5e1; /* slate-300 */
    transition: all 0.3s ease; 
}
.drag-area.active { 
    border-color: #2563eb; /* blue-600 */
    background-color: #eff6ff; /* blue-50 */
}

/* --- Animations & Loaders --- */
.fade-in { 
    animation: fadeIn 0.5s ease-in-out; 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.loader { 
    border: 4px solid #f3f3f3; /* gray-200 */
    border-top: 4px solid #3498db; /* blue-500 */
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    animation: spin 1s linear infinite; 
}
@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* --- Header & Mobile Menu Styles --- */

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 80; /* Below the menu but above content */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.mobile-menu-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile slide-in menu container */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: white;
    z-index: 100; /* Highest z-index */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Mobile menu accordion */
.accordion {
    border-bottom: 1px solid #e2e8f0; /* slate-200 */
}
.accordion:last-child {
    border-bottom: none;
}
.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1rem 0.75rem;
    font-weight: 500;
    color: #334155; /* slate-700 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}
.accordion-header i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #f8fafc; /* slate-50 */
}
.accordion-link {
    display: block;
    padding: 0.75rem 1.5rem; /* Indented */
    color: #475569; /* slate-600 */
    font-size: 0.9rem;
    text-decoration: none;
}
.accordion-link:hover {
    background-color: #e2e8f0; /* slate-200 */
    color: #1e293b; /* slate-800 */
}

/* --- Collapsible FAQ Styles (If you use them elsewhere) --- */
.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-answer.open {
    max-height: 200px; /* Adjust as needed */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-weight: 300;
    font-size: 1.5rem;
}

.faq-icon.open {
    transform: rotate(45deg);
}