/* Legal Documentation Requests Page Styles */

/* Main container styling */
.legal-container {
    padding: 20px;
    background-color: #f5f7fb;
    min-height: 100vh;
}

/* Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    max-width: 180px;
    height: auto;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #777;
    margin-top: 5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon,
.user-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff5252;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #777;
    font-size: 0.9rem;
}

.breadcrumb-item {
    text-decoration: none;
    color: #777;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 10px;
}

/* Page title */
.page-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.stats-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

.stat-label {
    color: #777;
    font-size: 0.9rem;
}

.new-stat {
    color: #ff5252;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    cursor: pointer;
}

.export-btn i {
    color: #777;
}

/* Filter section */
.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-dropdown {
    position: relative;
    min-width: 150px;
}

.filter-dropdown select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 12px;
}

.search-bar {
    flex: 1;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.filter-period {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #2d3748;
    color: white;
    gap: 5px;
}

/* Table styling */
.requests-table-container {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table th,
.requests-table td {
    padding: 15px;
    text-align: right;
}

.requests-table th {
    background-color: #2d3748;
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

.requests-table tbody tr {
    border-bottom: 1px solid #eee;
}

.requests-table tbody tr:nth-child(even) {
    background-color: #fff9e6;
}

.requests-table tbody tr:hover {
    background-color: #f5f7fb;
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-new {
    background-color: #ff5252;
}

.status-pending {
    background-color: #ffc107;
}

.status-completed {
    background-color: #4caf50;
}

.status-text {
    font-weight: 500;
}

/* Request content */
.request-content {
    max-width: 500px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Action links */
.action-link {
    color: #2196F3;
    text-decoration: none;
    margin-right: 10px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.action-link:hover {
    text-decoration: underline;
}

.show-more {
    color: #777;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.show-more:hover {
    text-decoration: underline;
}

/* Checkbox styling */
.checkbox-container {
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 18px;
    height: 18px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 18px;
    width: 18px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f1f1f1;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2196F3;
    border-color: #2196F3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    right: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.pagination-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
}

.pagination-btn.active {
    background-color: #2d3748;
    color: white;
    border-color: #2d3748;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.results-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-label {
    color: #777;
    font-size: 0.9rem;
}

.results-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}

.checkmark-green {
    color: #4caf50;
    font-size: 1.1rem;
}

.email-icon {
    color: #2196F3;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .request-content {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .filter-section {
        flex-wrap: wrap;
    }
    
    .search-bar {
        width: 100%;
        order: -1;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .page-title-container,
    .pagination-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-container {
        margin-top: 10px;
    }
}
