/* =====================================================
   Page-specific styles (extracted from inline <style>)
   ===================================================== */

/* -- index.ejs -- */
.btn-action > button {
    border: 0;
    font-size: 14px;
    border-radius: 50%;
    background: rgb(152 152 152);
    color: #fff;
    width: 36px;
    height: 34px;
}

@media screen and (max-width: 600px) {
    .file-uploader {
        margin: 0 auto;
        width: 100%;
    }
}

/* -- converting.ejs: rotate/split -- */
.rotate-inside > .page-row > .pagex[data-rotate="90"] { transform: rotate(90deg); }
.rotate-inside > .page-row > .pagex[data-rotate="180"] { transform: rotate(180deg); }
.rotate-inside > .page-row > .pagex[data-rotate="270"] { transform: rotate(270deg); }

.split-inside > .page-row > .pagex.selected > i { display: block !important; }
.split-inside > .page-row > .pagex,
.split-inside > .page-row > .pagex.selected > span {
    background-color: #2d7eff !important;
    color: white !important;
}

/* -- converting.ejs: PDF editor toolbar -- */
.pdfedit-toolbar {
    background: #1e1e2e;
    border-bottom: 1px solid #2d2d44;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.pdfedit-toolbar-inner {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 160px;
    gap: 1px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pdfedit-toolbar-inner::-webkit-scrollbar { display: none; }
.pdfedit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #b0b0c8;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    outline: none;
}
.pdfedit-btn:hover { background: #2d2d44; color: #e0e0f0; }
.pdfedit-btn:focus { outline: none; }
.pdfedit-btn.active { background: #3D85FD; color: #fff; }
.pdfedit-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.pdfedit-separator {
    width: 1px;
    height: 24px;
    background: #3a3a52;
    margin: 0 10px;
    flex-shrink: 0;
}
.pdfedit-color-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #3a3a52;
    cursor: pointer;
    flex-shrink: 0;
}
.pdfedit-color-wrapper input {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    opacity: 1;
}
.pdfedit-range {
    -webkit-appearance: none;
    width: 55px;
    height: 4px;
    border-radius: 2px;
    background: #3a3a52;
    outline: none;
}
.pdfedit-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3D85FD;
    cursor: pointer;
}
.pdfedit-page-nav {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #2d2d44;
    border-radius: 5px;
    padding: 2px;
    flex-shrink: 0;
}
.pdfedit-page-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #b0b0c8;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
}
.pdfedit-page-nav button:hover { background: #3a3a52; color: #fff; }
.pdfedit-page-nav button:focus { outline: none; }
.pdfedit-page-nav span {
    font-size: 11px;
    font-weight: 600;
    color: #8888a8;
    min-width: 42px;
    text-align: center;
    letter-spacing: 0.5px;
}
.pdfedit-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    background: #4285F4;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.pdfedit-save-btn:hover { background: #5a9aff; }
.pdfedit-save-btn:active { background: #3b78e7; }
.pdfedit-canvas-area {
    background: #40405a;
    min-height: 700px;
    padding: 24px;
    display: flex;
    justify-content: center;
}
#pdfedit-canvas-wrapper {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    border-radius: 2px;
    line-height: 0;
}
.pdfedit-btn span { display: none; }
@media (max-width: 768px) {
    .pdfedit-toolbar-inner { padding: 0 4px; }
    .pdfedit-btn { padding: 5px 6px; }
    .pdfedit-separator { margin: 0 2px; }
    .pdfedit-save-btn { padding: 5px 10px; font-size: 11px; }
}

/* -- home.ejs -- */
.section-grid-converters > .container {
    text-align: center;
}

.section-grid-converters > .container > .row > div > div{
    height: 142px;
    min-width: 254px;
    cursor: pointer;
    border: 1px solid #dde2ef;
    padding: 25px;
    background: white;
    margin: 10px;
}

.section-grid-converters.de > .container > .row > div > div {
    height: 194px;
}

.section-grid-converters.fr > .container > .row > div > div {
    height: 160px;
}

.section-grid-converters > .container > .row > div > div > div > span{
    font-size: 16px;
    display: block;
    width: 100%;
    text-align: left;
    color: #3684e4;
    clear: left;
    margin-bottom: 9px;
}

@media only screen and (max-width: 600px) {
    .section-grid-converters > .container > .row > div > div {
        min-width: 154px;
        height: 195px;
    }

    .section-grid-converters.de > .container > .row > div > div {
        height: 214px;
    }

    .section-grid-converters.fr > .container > .row > div > div {
        height: 178px;
    }

    .section-grid-converters > .container > .row > div > div {
        padding: 10px;
    }

    .section-grid-converters > .container > .row > div > div > div > span {
        text-align: center;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .section-grid-converters > .container > .row > div > div > div > p {
        text-align: center;
    }
}

/* -- my-files.ejs -- */
.free-files-list-component {
    margin-top: 75px;
    min-height: calc(100vh - 300px);
}

.table td, .table th {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table { width: 100%; }
.table th { color: black; }
.table td { color: #656565; }
.empty { text-align: center; }

.loading {
    text-align: center;
    font-size: 32px;
    color: black;
}
