/* Admin Page Styles - Matches Tenant Center Pattern */

/* Data Table Styles */
.table-responsive {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f1f7fd;
}

.actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-danger:disabled {
    background-color: #fab1a0;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background: white;
    width: 600px;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

textarea.form-control {
    font-family: monospace;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    /* Match input padding from tenant.css */
    border: 1px solid #e0e0e0;
    /* Match input border */
    border-radius: 8px;
    /* Match input radius */
    font-size: 1rem;
    /* Match input font size */
}

textarea.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}