
/* Hero section styles */
.UserManual_hero {
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('../Images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid #e8e6e0;
}

.UserManual_hero h1 {
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.UserManual_hero p {
    max-width: 600px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Main Section Background */
.manuals-list-section {
    background-color: #f8f8f8; /* Warm off-white background from screenshot */
    padding: 60px 0 80px 0;
}

/* Search Bar Styling */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.search-input {
    width: 100%;
    padding: 14px 24px 14px 52px;
    border-radius: 30px;
    border: 1px solid #d3d2cb;
    background-color: #ffffff;
    font-size: 16px;
    color: #212529;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    border-color: #85171a;
    box-shadow: 0 0 0 4px rgba(133, 23, 26, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input::placeholder {
    color: #8c8b82;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c8b82;
    font-size: 18px;
    pointer-events: none;
}

/* Filters Row styling */
.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.filters-left {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Custom Select Dropdowns */
.filter-select {
    padding: 10px 40px 10px 18px;
    border-radius: 12px;
    border: 1px solid #d3d2cb;
    background-color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212529' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    min-width: 180px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.filter-select:hover {
    border-color: #a6a49b;
}

.filter-select:focus {
    border-color: #85171a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(133, 23, 26, 0.1);
}

/* Clear Filters Button */
.clear-filters {
    color: #212529;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-filters:hover {
    color: #85171a;
    background-color: rgba(133, 23, 26, 0.05);
}

/* Table Container (Card Style) */
.manuals-table-container {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e0d8;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.manuals-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

    .manuals-table th {
        background-color: #000000;
        color: #f8f8f8;
        font-weight: 600;
        font-size: 14px;
        padding: 18px 24px;
        text-align: left;
        border-bottom: 1px solid #f8f8f8;
    }

.manuals-table td {
    padding: 20px 24px;
    vertical-align: middle;
    border-bottom: 1px solid #f1eee6;
    color: #212529;
}

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

    .manuals-table tr:hover td {
        background-color: var(--ma-grey20);
    }

/* Document Name Cell Styling */
.cell-doc-name {
    max-width: 450px;
}

.doc-title {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.doc-subtitle {
    font-weight: 400;
    font-size: 13px;
    color: #6c6b64;
}

.cell-category {
    font-weight: 500;
    font-size: 15px;
    color: #212529;
}

.cell-date {
    font-size: 15px;
    color: #212529;
}

.cell-action {
    text-align: right;
}

/* Action button style */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #85171a, #6c1012); /* Burgundy red gradient */
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(108, 16, 18, 0.15);
}

.btn-download:hover {
    background: linear-gradient(135deg, #991d21, #7f1416);
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 15px rgba(108, 16, 18, 0.25);
}

.btn-download:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(108, 16, 18, 0.2);
}

.btn-download i {
    font-size: 14px;
}

/* Responsive Styles for Mobile and Tablets */
@media (max-width: 991.98px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-left {
        width: 100%;
    }
    
    .filter-select {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }
    
    .clear-filters {
        align-self: flex-end;
    }
}

@media (max-width: 767.98px) {
    .UserManual_hero {
        padding: 50px 0;
        text-align: center;
    }
    
    .UserManual_hero h1 {
        font-size: 2rem;
    }
    
    .UserManual_hero p {
        margin: 0 auto;
        font-size: 1rem;
    }
    
    .manuals-list-section {
        padding: 30px 0 50px 0;
    }
    
    .search-container {
        margin-bottom: 25px;
    }
    
    .filter-select {
        flex: 1 1 100%;
    }
    
    /* Table Transformation to Cards */
    .manuals-table, 
    .manuals-table tbody, 
    .manuals-table tr, 
    .manuals-table td {
        display: block;
        width: 100%;
    }
    
    .manuals-table thead {
        display: none; /* Hide headers */
    }
    
    .manuals-table-container {
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .manuals-table tr {
        background-color: #ffffff;
        border: 1px solid #e2e0d8;
        border-radius: 16px;
        margin-bottom: 20px;
        padding: 20px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
    }
    
    .manuals-table td {
        padding: 10px 0;
        border-bottom: none;
    }
    
    /* Document Name card header */
    .manuals-table td.cell-doc-name {
        border-bottom: 1px solid #f1eee6;
        margin-bottom: 12px;
        padding-bottom: 12px;
        padding-top: 0;
    }
    
    .doc-title {
        font-size: 17px;
    }
    
    .doc-subtitle {
        font-size: 13.5px;
    }
    
    /* Category and Date side-by-side */
    .manuals-table td.cell-category {
        display: inline-block;
        width: 50%;
        float: left;
        font-size: 14px;
        color: #555;
    }
    
    .manuals-table td.cell-category::before {
        content: "Category: ";
        font-weight: 600;
        color: #8c8b82;
    }
    
    .manuals-table td.cell-date {
        display: inline-block;
        width: 50%;
        float: left;
        font-size: 14px;
        color: #555;
        text-align: right;
    }
    
    .manuals-table td.cell-date::before {
        content: "Date: ";
        font-weight: 600;
        color: #8c8b82;
    }
    
    /* Clear floats */
    .manuals-table tr::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Action button full width */
    .manuals-table td.cell-action {
        padding-top: 18px;
        text-align: center;
        clear: both;
    }
    
    .manuals-table td.cell-action .btn-download {
        display: flex;
        width: 100%;
        padding: 12px 20px;
    }
}
