/* Extras for Match the Mockup */

.admin-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #edeeef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 0 24px; /* Increased right padding to prevent clip */
    z-index: 1001;
    box-sizing: border-box;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    color: #0059bb;
}

.logo-text {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.admin-tag {
    background: #dc2626;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 4px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-icon-btn {
    background: transparent;
    border: 1px solid #edeeef;
    width: 32px;  /* Smaller square button */
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #717786;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.action-icon-btn svg {
    width: 16px; /* Smaller icon inside */
    height: 16px;
}

.action-icon-btn:hover {
    background: #f8fafc;
    color: #191c1d;
}

.logout-btn-v2:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fee2e2;
}

.admin-user-info {
    font-size: 13px;
    font-weight: 600;
    color: #414754;
    padding: 6px 14px;
    background: #f8fafc;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #191c1d;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #edeeef;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    margin-right: 0;
}

.back-home-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Sidebar adjustments */
.sidebar {
    top: 64px !important;
    height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    padding-bottom: 60px; /* Space for the last item */
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.main-wrapper {
    margin-top: 64px !important;
}

/* Header Redesign */
.header-section {
    align-items: center !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input-wrapper-v2 {
    position: relative;
    width: 320px;
}

.search-input-wrapper-v2 input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #edeeef;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.search-icon-svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #717786;
}

.refresh-btn, .add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
}

.refresh-btn {
    background: #fff;
    color: #191c1d;
    border: 1px solid #edeeef;
}

.add-btn {
    background: linear-gradient(135deg, #0059bb, #0070ea);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 89, 187, 0.2);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 89, 187, 0.3);
}

/* Table Style matching Mockup */
.data-table-container {
    border: 1px solid #edeeef !important;
    box-shadow: none !important;
    border-radius: 12px !important;
}

table tr:last-child td {
    border-bottom: none;
}

th {
    background: #fcfdfe !important;
    color: #191c1d !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
}

.pc-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 4px;
    border: 1px solid #e2e8f0;
}

.chip-blue { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.chip-green { background: #f0fdf4; color: #15803d; border-color: #dcfce7; }
.chip-red { background: #fef2f2; color: #b91c1c; border-color: #fee2e2; }

/* Action Buttons style from mockup */
.action-btns .icon-btn {
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.btn-edit-v2 { background: #0059bb; }
.btn-delete-v2 { background: #ef4444; }

.lookup-nav .nav-item {
    font-size: 13px;
    padding: 6px 12px;
}

/* Pagination */
.pagination-dynamic {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px;
    border-top: 1px solid #edeeef;
}

.p-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edeeef;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.p-btn:hover:not(:disabled) {
    border-color: #0059bb;
    color: #0059bb;
}

.p-btn.active {
    background: #0059bb;
    color: #fff;
    border-color: #0059bb;
}

.p-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modal Form Enhancements */
.image-upload-label {
    border: 2px dashed #edeeef;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fcfdfe;
    text-align: center;
}

.image-upload-label:hover {
    border-color: #0059bb;
    background: #f8fafc;
}

.image-upload-label span {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.form-scroll-area {
    background: #fff;
    border: 1px solid #edeeef;
    padding: 12px;
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.form-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.form-scroll-area::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
