/* Permissions Section Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

#permissions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#permissions-table th,
#permissions-table td {
    border: 1px solid #e1e5e9;
    padding: 16px;
    text-align: left;
    vertical-align: top;
}

#permissions-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

#permissions-table tbody tr {
    transition: all 0.2s ease;
}

#permissions-table tbody tr:nth-child(even) {
    background-color: #f8f9ff;
}

#permissions-table tbody tr:hover {
    background-color: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#permissions-table tbody tr td {
    border-bottom: 1px solid #e9ecef;
}

/* Resource badge styling */
.resource-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-tasks {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.resource-projects {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.resource-users {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
}

.resource-roles {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.resource-permissions {
    background-color: #fce4ec;
    color: #c2185b;
    border: 1px solid #f48fb1;
}

.resource-admin {
    background-color: #ede7f6;
    color: #5e35b1;
    border: 1px solid #b39ddb;
}

/* Action badge styling */
.action-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    .table-container {
        margin-top: 15px;
    }

    #permissions-table th,
    #permissions-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #495057;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* Error state */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}



