/**
 * Dashboard CSS for Dugout Plan
 */

/* General Dashboard Styles */
.dashboard-container {
    padding: 1rem 0;
}

.dashboard-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
    font-weight: 600;
}

.card-footer {
    border-bottom-left-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}

/* Quick Access Cards */
.quick-access-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.quick-access-card:hover .icon-circle {
    transform: scale(1.1);
}

/* Sidebar Styles */
.sidebar-container {
    background-color: #f8f9fa;
    padding: 1.5rem 1rem;
    border-right: 1px solid #e9ecef;
    min-height: calc(100vh - 56px - 72px); /* Viewport height minus header and footer */
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.sidebar-container .nav-link {
    color: #495057;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-container .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar-container .nav-link.active {
    color: #fff;
    background-color: #007bff;
}

.user-profile {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #6c757d;
}

/* Main Content Area */
.main-content-container {
    padding: 1.5rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-indicator.show {
    opacity: 1;
    visibility: visible;
}

/* Notification List */
.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-time {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .sidebar-container {
        display: none;
    }
}

/* Button Group Actions */
.btn-group-actions .btn {
    margin-right: 0.25rem;
}

.btn-group-actions .btn:last-child {
    margin-right: 0;
}

/* Table Styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* Form Styles */
.form-label {
    font-weight: 500;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Required Field Indicator */
.form-label.required:after {
    content: "*";
    color: #dc3545;
    margin-left: 0.25rem;
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cursor-pointer {
    cursor: pointer;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}
