/* Shared Table Styles */
.shared-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shared-table thead th {
    background: #fff;
    color: #333;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    border: none;
    font-size: 0.8rem;
    border-bottom: 2px solid #e9ecef;
}

.shared-table tbody tr {
    transition: all 0.3s ease;
}

.shared-table tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shared-table tbody td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 0.85rem;
}

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

/* Shared Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e9ecef;
}

.pagination-info {
    font-size: 0.8rem;
    color: #6c757d;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-nav .page-item .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    min-width: 32px;
    text-align: center;
    border: 1px solid #dee2e6;
    color: #03a4ed;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-nav .page-item .page-link:hover {
    background-color: #03a4ed;
    border-color: #03a4ed;
    color: #fff;
}

.pagination-nav .page-item.active .page-link {
    background-color: #03a4ed;
    border-color: #03a4ed;
    color: #fff;
}

.pagination-nav .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pagination-nav {
        justify-content: center;
    }

    .shared-table {
        font-size: 0.8rem;
    }

    .shared-table thead th,
    .shared-table tbody td {
        padding: 0.5rem 0.25rem;
    }
}


/* Shared Modal Styles */
.shared-modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.shared-modal .modal-header {
    background: linear-gradient(135deg, #03a4ed 0%, #0288cc 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.shared-modal .modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.shared-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.shared-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.shared-modal .modal-body {
    padding: 2rem !important;
    background: #fafbfc;
}

.shared-modal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
    padding: 1.5rem 2rem;
}

/* Form improvements in modal */
.shared-modal .form-group {
    margin-bottom: 1.5rem;
}

.shared-modal .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.shared-modal .form-input,
.shared-modal .account-form-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.shared-modal .form-input:focus,
.shared-modal .account-form-input:focus {
    border-color: #03a4ed;
    box-shadow: 0 0 0 0.2rem rgba(3, 164, 237, 0.25);
    outline: none;
}

.shared-modal .form-input:disabled,
.shared-modal .account-form-input:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
}

/* Button improvements */
.shared-modal .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.shared-modal .btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
}

.shared-modal .btn-primary {
    background: linear-gradient(135deg, #03a4ed 0%, #0288cc 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.shared-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 164, 237, 0.3);
}

.shared-modal .btn-secondary {
    background: #6c757d;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.shared-modal .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}