﻿.link-4 {
    background-color: #e7e7df;
}

.mobile-link-4 {
    color: blue;
}

.search-container {
/*    max-width: 1200px;*/
    width: 90%;
    margin: auto;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* FORM BOX */
.search-box {
    width: 100%;
}

    /* INPUT + SELECT */
    .search-card input,
    .search-card select {
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        font-size: 14px;
        outline: none;
        background: #fff;
    }

    /* SELECT ICON */
    .search-card i {
        position: absolute;
        right: 10px;
        top: 38px;
        color: #999;
    }

/* BUTTON */
.search-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #1B3F2F, #245c45);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

    .search-btn:hover {
        background: linear-gradient(135deg, #245c45, #1B3F2F);
    }

/* ===== RESULT CARD ===== */
.result-card {
    width: 85vw;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* HEADER */
.result-header {
    padding: 14px 18px;
    background: #1B3F2F;
    color: #C5A059;
    font-weight: 600;
    font-size: 15px;
}

/* TABLE WRAPPER */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
}

/* HEADER */
thead {
    background: #f1f5f9;
}

/* CELLS */
th, td {
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

/* HIGHLIGHT */
.highlight {
    font-weight: 700;
    color: #1B3F2F;
}

/* ACTIONS */
.actions {
    display: flex;
    gap: 6px;
}

    /* BUTTON STYLE */
    .actions a {
        padding: 6px 10px;
        border-radius: 6px;
        color: #fff;
        text-decoration: none;
        font-size: 12px;
    }

/* VIEW */
.view-btn {
    background: #0ea5e9;
}

/* EDIT */
.edit-btn {
    background: #10b981;
}

/* HOVER */
.actions a:hover {
    opacity: 0.85;
}

/* ===== MAIN ROW LAYOUT ===== */
/*.search-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}*/

/* LEFT SIDE */
.left-section {
    flex: 2;
    background: var(--background);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* RIGHT SIDE */
.right-section {
    flex: 1;
}

/* HEADING */
.social-head {
    text-align: center;
    margin: 2vh 0;
    font-family: Kaushan Script;
    font-size: 40px;
    color: var(---dark_text);
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

/* INPUT CARD */
.search-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

    /* LABEL */
    .search-card label {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 5px;
        color: #555;
    }

    /* INPUT */
    .search-card input,
    .search-card select {
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ccc;
    }

/* BUTTON */
.search-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #1B3F2F;
    color: white;
    font-weight: 600;
    cursor: pointer;
}
/* Table wrapper ko scrollable banane ke liye */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* Horizontal scroll enable karega */
    -webkit-overflow-scrolling: touch; /* Mobile par smooth scrolling ke liye */
    border-radius: 0 0 12px 12px;
}

    /* Table ki width fix karein taky columns mobile par collapse na ho */
    .table-wrapper table {
        width: 100%;
        min-width: 600px; /* Sabse important: Mobile par table ko itna bada rakhega ki scroll aaye */
        border-collapse: collapse;
        background-color: white;
    }

    /* Scrollbar ko thoda sundar banane ke liye (Optional) */
    .table-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .table-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .table-wrapper::-webkit-scrollbar-thumb {
        background: #1B3F2F;
        border-radius: 10px;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

    .search-container {
        flex-direction: column;
        width: auto;
    }

    .left-section,
    .right-section {
        width: 100%;
    }

    .row {
        flex-direction: column;
    }
}

/* TABLE MOBILE FIX */
@media (max-width: 768px) {

    .row {
        flex-direction: column;
    }

    .search-card {
        width: 100%;
    }

    th, td {
        font-size: 12px;
        padding: 8px;
    }

    .actions {
        flex-direction: column;
    }

    th, td {
        padding: 10px 8px; /* Thodi jagah kam karein mobile par */
        white-space: nowrap; /* Text ko wrap hone se rokega taky scroll bar aaye */
    }

    .view-btn {
        padding: 5px 8px !important;
        font-size: 11px;
    }
}