/* Enhanced Professional Styles */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --border-radius: 6px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Layout adjustments for full-width tables */
.container {
    max-width: 100%;
    padding: 0 15px;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col-md-3, .col-md-9, .col-md-10, .col-md-2 {
    padding-left: 0;
    padding-right: 0;
}

/* Full-width table container */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1.text-primary {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Navigation enhancements */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Breadcrumb improvements */
.breadcrumb {
    background-color: var(--gray-light);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-item.active {
    color: var(--gray);
    font-weight: 500;
}

/* Card enhancements */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.card.bg-primary, .card.bg-info {
    border: none;
}

/* Table enhancements - Full width */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Button enhancements */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.375rem 0.75rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: #fff;
}

.btn-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    color: #fff;
    transform: translateY(-2px);
}

/* Toast notifications */
.toast {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.toast-header {
    font-weight: 600;
}

/* Sidebar navigation */
.list-group-item {
    border: none;
    border-radius: var(--border-radius) !important;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.list-group-item:hover {
    background-color: var(--secondary);
    color: white;
}

.list-group-item-action.active {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Footer enhancements */
footer {
    background-color: var(--dark) !important;
    padding: 2rem 0 !important;
    margin-top: 2rem;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Dashboard specific */
.student .card {
    cursor: pointer;
}

.student .card:hover .fa-users {
    transform: scale(1.1);
}

.student .fa-users {
    transition: var(--transition);
}

/* Content area */
.content {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    width: 100%;
}

/* Alternating ticker improvements */
.alternating-ticker {
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-3 {
        margin-bottom: 1.5rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .table thead th, 
    .table tbody td {
        padding: 0.5rem;
    }
}

/* Animation for toast */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.toast.fade {
    animation: fadeIn 0.5s;
}

/* Full-width table adjustments */
#data {
    width: 100%;
    table-layout: auto;
}

#data th, #data td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure proper spacing in the main layout */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}