/* Table Styling */
.table > :not(caption) > * > * {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
}

/* Header Styling */
.table.dataTable thead th {
    padding: 0.75rem 0.6rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
    color: #495057;
}

/* Row Styling */
.table.dataTable tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.table.dataTable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Cell Styling */
.table.dataTable tbody td {
    padding: 0.4rem 0.6rem;
    vertical-align: middle;
}

/* Button Styling */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

/* DataTable Controls Styling */
.dataTables_wrapper .dataTables_length select {
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #556ee6 !important;
    border-color: #556ee6 !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #495057 !important;
}

/* Card Styling */
.card {
    box-shadow: 0 0 10px rgba(0,0,0,0.03);
    border: none;
    margin-bottom: 24px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
}

.card-body {
    padding: 1rem;
}

/* Action Buttons */
.btn-action {
    padding: 0.375rem;
    line-height: 1;
    border: none;
    background: transparent;
    margin: 0 0.125rem;
    color: #6c757d;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
}

/* Colored Action Buttons */
.btn-action.delete {
    color: #f46a6a;
}

.btn-action.edit:hover, .btn-action.duplicate:hover {
    color: #556ee6;
}

.btn-action.delete:hover {
    color: #f46a6a;
}

/* Add some spacing for actions column */
.actions-column {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* Stripe Effect */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.01);
}

/* Responsive Table */
@media (max-width: 767.98px) {
    .table > :not(caption) > * > * {
        padding: 0.3rem 0.4rem;
        font-size: 0.8125rem;
    }
}

/* SweetAlert2 Custom Styling */
.swal2-custom-popup {
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.swal2-custom-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}

.swal2-custom-html-container {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.swal2-custom-icon {
    border: 3px solid;
    padding: 1.5rem;
}

/* Button styling for SweetAlert2 */
.swal2-actions .btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.swal2-actions .btn-primary {
    background-color: #556ee6;
    border-color: #556ee6;
}

.swal2-actions .btn-primary:hover {
    background-color: #4458ca;
    border-color: #4458ca;
}

.swal2-actions .btn-danger {
    background-color: #f46a6a;
    border-color: #f46a6a;
}

.swal2-actions .btn-danger:hover {
    background-color: #f13e3e;
    border-color: #f13e3e;
}

.swal2-actions .btn-light {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #495057;
}

.swal2-actions .btn-light:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* For warning icon */
.swal2-warning {
    color: #f7b84b !important;
    border-color: #f7b84b !important;
}

/* For error icon */
.swal2-error {
    color: #f46a6a !important;
    border-color: #f46a6a !important;
}

/* For success icon */
.swal2-success {
    color: #34c38f !important;
    border-color: #34c38f !important;
}

/* For info icon */
.swal2-info {
    color: #50a5f1 !important;
    border-color: #50a5f1 !important;
} 