/* =========================================
   components.css
   Reusable UI elements — cards, tables,
   forms, modals, tabs, file upload,
   empty states, back-to-top button.
   Depends on: global.css
========================================= */

/* =========================================
   SECTION WRAPPERS
========================================= */
.section-wrapper-white { background-color: #ffffff; }
.section-wrapper-light {
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.section {
    padding: 80px 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.section-header p {
    color: #666;
    margin-top: 8px;
}

.view-all {
    text-decoration: none;
    color: #0066ff;
    font-weight: 600;
}

/* =========================================
   GENERIC JOB / INTERNSHIP CARDS
   (used on homepage & browse pages)
========================================= */
.internships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.internship-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
    border: 1px solid transparent;
}

.internship-card:hover {
    transform: translateY(-6px);
    border-color: #dbeafe;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.company-logo {
    width: 52px;
    height: 52px;
    background: #0066ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.card-info h3 { margin: 0 0 6px; font-size: 18px; }
.card-info p  { margin: 0; font-size: 14px; color: #666; }

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: #eaf2ff;
    color: #0066ff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.detail-item { line-height: 1.5; }

.card-footer {
    padding-top: 18px;
    border-top: 1px solid #f1f1f1;
}

.apply-btn {
    display: inline-block;
    background: #0066ff;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.apply-btn:hover { transform: translateY(-2px); }

/* =========================================
   LUXURY PREMIUM CARDS (homepage sections)
========================================= */
.lux-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.lux-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: #cbd5e1;
}

.lux-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.lux-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.logo-job { background: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }
.logo-int { background: #fdf4ff; color: #e11d48; border: 1px solid #ffe4e6; }

.lux-title   { font-size: 1.15rem; color: #0f172a; font-weight: 700; margin: 0 0 5px; line-height: 1.3; }
.lux-company { font-size: 0.9rem; color: #64748b; margin: 0; }

.lux-badge {
    display: inline-block;
    margin-bottom: 14px;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

.badge-job { background: #f0fdf4; color: #16a34a; }
.badge-int { background: #fdf2f8; color: #e11d48; }

.lux-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    flex: 1;
}

.lux-detail-item {
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lux-detail-item i { color: #94a3b8; width: 16px; text-align: center; }

.lux-btn {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.2s;
}

.btn-job { background: #f8fafc; color: #3b82f6; border: 1px solid #e2e8f0; }
.btn-job:hover { background: #3b82f6; color: white; }
.btn-int { background: #f8fafc; color: #e11d48; border: 1px solid #e2e8f0; }
.btn-int:hover { background: #e11d48; color: white; }

/* Disable card hover lifts on touch devices */
@media (hover: none) {
    .lux-card:hover,
    .premium-cat-card:hover,
    .step-card:hover { transform: none !important; }
}

/* =========================================
   CATEGORY CARDS
========================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 28px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover { transform: translateY(-5px); }
.category-card h3    { margin: 0; font-size: 18px; }
.category-card p     { margin-top: 10px; font-size: 14px; color: #64748b; font-weight: 500; }

/* Premium category card variant */
.premium-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.premium-cat-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 15px 30px -5px rgba(59,130,246,0.1);
}

.cat-icon-box {
    width: 54px;
    height: 54px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cat-info h3    { margin: 0 0 4px; color: #0f172a; font-size: 1.15rem; font-weight: 700; }
.cat-info span  { color: #64748b; font-size: 0.9rem; font-weight: 500; }

/* cat-card (simple icon-less version) */
.cat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cat-card:hover { border-color: #3b82f6; background: #f8fafc; transform: translateY(-5px); }
.cat-title      { color: #0f172a; font-weight: 700; font-size: 1.1rem; margin: 0; }
.cat-count      { color: #64748b; font-size: 0.85rem; font-weight: 500; background: #f1f5f9; padding: 4px 12px; border-radius: 20px; }

/* =========================================
   TABLES (shared — dash + listings)
========================================= */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

/* Premium dash table */
.dash-table { width: 100%; border-collapse: collapse; }

.dash-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td      { background: #f8fafc; }

.job-title-cell strong { color: #0f172a; font-size: 15px; }
.date-cell             { color: #64748b; font-size: 13px; }
.action-link           { color: #0066ff; text-decoration: none; font-weight: 600; font-size: 13px; }
.action-link:hover     { text-decoration: underline; }

/* =========================================
   MODERN FORM ELEMENTS (profile / edit pages)
========================================= */
.form-section-label,
.form-section-heading {
    font-size: 1.2rem;
    color: #0f172a;
    margin: 32px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.form-section-heading i               { color: #0066ff; }
.form-section-heading:first-of-type   { margin-top: 10px; }

.modern-form .form-group { margin-bottom: 20px; }

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.form-hint { font-weight: 400; color: #64748b; font-size: 0.85rem; }

.modern-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.2s;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.modern-form .form-control:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
    outline: none;
    background-color: #ffffff;
}

.modern-form select.form-control   { cursor: pointer; }
.modern-form textarea.form-control { resize: vertical; line-height: 1.6; }

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-wrap .form-control { padding-left: 40px; }

.input-icon {
    position: absolute;
    left: 15px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Logo upload box (profile pages) */
.logo-upload-box {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px dashed #94a3b8;
}

.current-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0,102,255,0.2);
}

.empty-logo {
    width: 80px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 24px;
    flex-shrink: 0;
}

.upload-controls { flex: 1; }
.file-input      { background: transparent !important; padding: 0 !important; border: none !important; margin-bottom: 8px; }
.file-help       { font-size: 0.85rem; color: #64748b; margin: 0; line-height: 1.4; }
.form-actions    { text-align: right; border-top: 1px solid #e2e8f0; padding-top: 24px; margin-top: 10px; }

@media (max-width: 768px) {
    .logo-upload-box { flex-direction: column; text-align: center; }
}

/* File upload drag box */
.file-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    position: relative;
    width: 100%;
}

.file-upload-box:hover {
    border-color: #0066ff !important;
    background-color: #f1f5f9 !important;
}

.file-upload-box:hover .file-upload-icon,
.file-upload-box:hover .file-upload-icon i { color: #0066ff !important; }

.file-upload-box.logo-upload:hover {
    border-color: #16a34a !important;
    background: #f0fdf4 !important;
}

.file-upload-box input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-icon  { font-size: 28px; }
.file-upload-text  { font-size: 14px; color: #64748b; font-weight: 500; }
.file-name-label   { display: block; font-size: 12px; color: #0066ff; margin-top: 6px; font-weight: 500; }
.browse-text       { color: #0066ff; font-weight: 600; }
.logo-upload .browse-text { color: #16a34a; }

/* =========================================
   MODALS
========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayIn .25s ease both;
}

.modal-overlay.active { display: flex; }

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 32px 80px rgba(15,23,42,0.18), 0 12px 32px rgba(15,23,42,0.1);
    animation: boxIn .3s cubic-bezier(.34,1.56,.64,1) both;
    max-height: 92vh;
    overflow-y: auto;
}

.modal-box-lg { max-width: 560px; }

@keyframes boxIn {
    from { opacity: 0; transform: translateY(30px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-box::-webkit-scrollbar       { width: 5px; }
.modal-box::-webkit-scrollbar-thumb { background: #e0e7ff; border-radius: 99px; }

.modal-close {
    position: absolute;
    top: 16px; right: 18px;
    background: #f1f5f9;
    border: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.modal-close:hover { background: #fee2e2; color: #dc2626; }

.modal-header          { text-align: center; margin-bottom: 26px; }
.modal-logo            { display: flex; justify-content: center; margin-bottom: 14px; }
.modal-header h2       { font-size: 26px; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.modal-header p        { font-size: 14px; color: #64748b; margin: 0; }
.modal-form            { margin-top: 4px; }
.modal-footer-text     { text-align: center; font-size: 13px; color: #64748b; margin-top: 18px; }
.modal-subtitle        { text-align: center; color: #64748b; margin-bottom: 25px; font-size: 15px; }

.modal-more-note {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #475569;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Modal tabs */
.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.3s;
}

.tab-btn:hover                              { color: #0066ff; }
.tab-btn.active                             { color: #0066ff; border-bottom-color: #0066ff; }
.tab-btn[data-target="employerTab"].active  { color: #16a34a; border-bottom-color: #16a34a; }

.tab-pane           { display: none; animation: fadeIn 0.4s ease; }
.tab-pane.active    { display: block; }

/* Registration tabs (pill style) */
.reg-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 22px;
    gap: 4px;
}

.reg-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #64748b;
    transition: .25s;
}

.reg-tab.active {
    background: #fff;
    color: #0066ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Modal form fields */
.modal-form .form-group             { margin-bottom: 15px; }
.modal-form .form-group label       { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }

.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: .2s;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-form .form-group input:focus,
.modal-form .form-group select:focus,
.modal-form .form-group textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

.modal-form .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
}

.modal-form .input-icon-wrap         { position: relative; display: flex; align-items: center; }
.modal-form .input-icon-wrap input   { padding-left: 40px; }
.modal-form .input-icon              { position: absolute; left: 14px; font-size: 15px; color: #94a3b8; pointer-events: none; z-index: 1; display: flex; align-items: center; height: 100%; }

.pass-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #0066ff;
    cursor: pointer;
    padding: 0;
}

.link-btn {
    background: none;
    border: none;
    color: #0066ff;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
}

.forgot-link         { color: #0066ff; text-decoration: none; font-weight: 500; }
.forgot-link:hover   { text-decoration: underline; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    font-weight: 400 !important;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: #0066ff;
}

.inline-link        { color: #0066ff; text-decoration: none; font-weight: 500; }
.inline-link:hover  { text-decoration: underline; }
.req                { color: #ef4444; margin-left: 2px; }

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 18px;
}

.auth-switch a              { color: #0066ff; font-weight: 600; text-decoration: none; }
.auth-switch a:hover        { text-decoration: underline; }

@media (max-width: 600px) {
    .modal-box          { padding: 26px 18px; }
    .form-grid-2        { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================
   CATEGORY MODAL
========================================= */
.cat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.cat-modal-overlay.active { opacity: 1; visibility: visible; }

.cat-modal-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 30px 30px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(15,23,42,0.2);
    text-align: center;
}

.cat-modal-overlay.active .cat-modal-box { transform: translateY(0); }

.cat-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-modal-close:hover { background: #fee2e2; color: #dc2626; }

.cat-modal-icon {
    width: 60px; height: 60px;
    background: #eff6ff; color: #3b82f6;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.cat-modal-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.cat-modal-sub   { font-size: 0.9rem; color: #64748b; margin: 0 0 24px; }

.cat-modal-options { display: flex; flex-direction: column; gap: 12px; }

.cat-modal-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.cat-modal-option:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }

.cat-opt-job         { background: #f8faff; border-color: #dbeafe; }
.cat-opt-job:hover   { border-color: #3b82f6; background: #eff6ff; }
.cat-opt-int         { background: #fdf8ff; border-color: #ffe4e6; }
.cat-opt-int:hover   { border-color: #e11d48; background: #fdf2f8; }

.cat-opt-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cat-opt-job .cat-opt-icon { background: #dbeafe; color: #3b82f6; }
.cat-opt-int .cat-opt-icon { background: #ffe4e6; color: #e11d48; }

.cat-opt-info        { flex: 1; }
.cat-opt-info strong { display: block; color: #0f172a; font-size: 0.95rem; margin-bottom: 2px; }
.cat-opt-info span   { color: #64748b; font-size: 0.82rem; }
.cat-opt-arrow       { color: #94a3b8; font-size: 0.85rem; }

/* =========================================
   EMPTY STATE
========================================= */
.empty-state          { text-align: center; padding: 40px 20px; }
.empty-icon           { font-size: 48px; display: block; margin-bottom: 15px; opacity: 0.5; }
.empty-state h4       { margin: 0 0 8px; font-size: 18px; color: #0f172a; }
.empty-state p        { color: #64748b; margin-bottom: 20px; font-size: 14px; }

.premium-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    width: 100%;
}

/* =========================================
   BACK TO TOP BUTTON
========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 24px;
    width: 44px; height: 44px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(15,23,42,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover   { background: #0066ff; transform: translateY(-2px); }

/* =========================================
   PREMIUM INLINE INPUT
========================================= */
.premium-inline-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 18px;
    font-size: 1rem;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    outline: none;
    margin-bottom: 0;
}

.premium-inline-input::placeholder { color: #94a3b8; font-weight: 400; }

.premium-inline-input:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}