/* Tools Common Styles */
.tool-page {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-header p {
    color: var(--text-muted, #9ca3af);
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary, #6366f1);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-5px);
}

.tool-box {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 95%;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.file-upload-area:hover {
    border-color: var(--primary, #6366f1);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--primary, #6366f1);
    margin-bottom: 15px;
}

.file-upload-area h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

/* Category Tabs (Universal Tool) */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cat-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.cat-tab:hover,
.cat-tab.active {
    background: var(--primary, #6366f1);
    color: white;
    border-color: var(--primary, #6366f1);
}

/* Buttons */
.tool-btn {
    background: var(--primary, #6366f1);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.tool-btn:hover {
    background: var(--primary-dark, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.tool-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
}

.tool-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tool-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.full-width {
    width: 100%;
}

/* Inputs */
input[type="text"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
}

/* Format List */
.format-list .download-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    color: #eee;
}