/* TOSSET Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Dashboard */
.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.125rem;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
}

.sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* Border variations for dashboard cards */
.border-left-primary { border-left: 0.25rem solid var(--primary-color) !important; }
.border-left-success { border-left: 0.25rem solid var(--success-color) !important; }
.border-left-info { border-left: 0.25rem solid var(--info-color) !important; }
.border-left-warning { border-left: 0.25rem solid var(--warning-color) !important; }

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Profile Images */
.avatar-placeholder {
    position: relative;
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
}

.avatar-placeholder:hover .profile-image-overlay {
    opacity: 1;
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Model Cards */
.model-card {
    transition: transform 0.2s ease-in-out;
}

.model-card:hover {
    transform: translateY(-5px);
}

/* Job Listings */
.job-card {
    border-left: 4px solid var(--primary-color);
}

.job-card:hover {
    border-left-color: var(--success-color);
}

/* Messages/Chat */
.chat-message {
    max-width: 70%;
    word-wrap: break-word;
}

.chat-message.sent {
    margin-left: auto;
}

.chat-message.received {
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 60vh;
    }
    
    .sidebar {
        min-height: auto;
        box-shadow: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .flash-message {
        position: static;
        margin-bottom: 1rem;
    }
}

/* Utility Classes */
.text-xs {
    font-size: 0.75rem;
}

.font-weight-bold {
    font-weight: 600;
}

.text-gray-800 {
    color: #495057;
}

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

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Badges */
.badge.bg-available {
    background-color: var(--success-color) !important;
}

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

.badge.bg-unavailable {
    background-color: var(--danger-color) !important;
}