/* Component Styles */

/* Badges */
.badge {
    border-radius: 15px;
    padding: 0.4em 0.8em;
    font-weight: 500;
}

.badge.bg-info {
    background: var(--info-gradient) !important;
    color: white !important;
}

.badge.bg-success {
    background: var(--success-gradient) !important;
    color: white !important;
}

.badge.bg-warning {
    background: var(--warning-gradient) !important;
    color: white !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
    color: white !important;
}

.badge.bg-secondary {
    background: var(--secondary-gradient) !important;
    color: white !important;
}

.badge.bg-light {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2d3748 !important;
    border: 1px solid rgba(0,0,0,0.1);
}

.badge.bg-dark {
    background: var(--dark-gradient) !important;
    color: white !important;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(248, 215, 218, 0.95);
    color: #721c24;
}

.alert-success {
    background: rgba(212, 237, 218, 0.95);
    color: #0f5132;
}

.alert-warning {
    background: rgba(255, 243, 205, 0.95);
    color: #664d03;
}

.alert-info {
    background: rgba(207, 244, 252, 0.95);
    color: #055160;
}

/* Pagination */
.page-link {
    border-radius: 20px !important;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link:focus,
.page-link:active {
    border-radius: 20px !important;
}

.page-item:first-child .page-link {
    border-radius: 25px !important;
}

.page-item:last-child .page-link {
    border-radius: 25px !important;
}

.page-item:first-child .page-link:hover,
.page-item:first-child .page-link:focus,
.page-item:last-child .page-link:hover,
.page-item:last-child .page-link:focus {
    border-radius: 25px !important;
}

/* Dropdown */
.dropdown-toggle {
    border-radius: 25px;
}

.dropdown-menu {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dropdown-item {
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    padding-left: 1.5rem;
}

/* Profile avatar */
.profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    background: var(--primary-gradient);
}

/* Small avatar for lists */
.avatar-sm {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .main-content {
        margin-left: 1rem;
        margin-top: 80px;
    }
    
    .main-content.unauthenticated {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Corporate theme text improvements - Make text stand out */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

p, span, div, td, th {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Labels and form text */
.form-label, label {
    color: var(--text-primary) !important;
}

/* Bootstrap overrides for dark theme */
.text-dark {
    color: var(--text-primary) !important;
}

/* Make sure links are visible */
a {
    color: var(--accent-blue-light);
}

a:hover {
    color: var(--accent-blue);
}

/* Utility classes for gradient containers */
.border-white {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.gradient-primary .border-white,
.gradient-secondary .border-white,
.gradient-success .border-white,
.gradient-warning .border-white,
.gradient-info .border-white,
.gradient-dark .border-white {
    border-color: rgba(255, 255, 255, 0.4) !important;
}