.hidden {
  display: none !important;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* --- Modal box --- */
.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;     /* 👈 enables scroll */
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  position: relative;
}

/* Close (X) icon */
/* .close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
} */

/* --- Form layout --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.wide {
  grid-column: span 2; /* make long fields like address stretch wider */
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}
/* 🧩 Larger form for client info */
.modal-content.large {
  width: 800px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  gap: 0.7rem;
}

.modal-sm {
  position: fixed;
  top: 20%;
  left: 40%;
  background: white;
  border: 1px solid #ccc;
  padding: 1rem;
  z-index: 1000;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
}

/* static/css/table_vw.css */
.view-container {
    padding: 1.5rem;
    max-width: 1500px;
    margin: 0 auto;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--primary-color);
}

.view-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.view-table thead {
    background-color: var(--primary-color);
    color: white;
}

.view-table th {
    padding: 0.7rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-table td {
    padding: 0.7rem;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}

.view-table tbody tr {
    transition: var(--transition);
}

.view-table tbody tr:hover {
    background-color: rgba(26, 75, 132, 0.05);
}

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

tr.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* Column specific styles */

.col-name {
    width: 20%;
    font-weight: 500;
}

.col-number {
    width: 10%;
    font-weight: 500;
}

.col-text {
    width: 25%;
    font-weight: 500;
}

.col-description {
    width: 25%;
    color: var(--gray);
}

.col-created {
    width: 10%;
    color: var(--gray);
    font-size: 0.8rem;
}

.col-note {
    width: 10%;
    color: var(--gray);
}

.col-actions {
    width: 10%;
    text-align: center;
}

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-inactive {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--gray);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-action {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.btn-edit {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.btn-edit:hover {
    background-color: var(--warning-color);
    color: white;
}

.btn-delete {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.btn-delete:hover {
    background-color: var(--danger-color);
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive design */
@media (max-width: 1200px) {
    .view-container {
        padding: 1rem;
    }
    
    .view-table {
        font-size: 0.9rem;
    }
    
    .view-table th,
    .view-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 992px) {
    .view-table {
        display: block;
        overflow-x: auto;
    }
    
    .col-created,
    .col-description {
        display: none;
    }
}

@media (max-width: 768px) {
    .view-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .col-slug {
        display: none;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-action {
        width: 100%;
    }
}

/* Loading animation */
/* .loading-row {
    animation: pulse 1.5s infinite;
} */

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
