/* Taskering CRM - Vlastní styly (Bootstrap styly jsou v bootstrap.css) */

/* Globální font nastavení */
body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Vlastní CSS proměnné pro Taskering */
:root {
    /* Vlastní barvy pro Taskering */
    --taskering-primary: #667eea;
    --taskering-secondary: #764ba2;
    --taskering-accent: #f093fb;
    --taskering-success: #4facfe;
    --taskering-warning: #43e97b;
    --taskering-danger: #fa709a;
    --taskering-info: #a8edea;
    --taskering-light: #f8f9fa;
    --taskering-dark: #2c3e50;
    
    /* Gradienty */
    --taskering-gradient-primary: linear-gradient(135deg, var(--taskering-primary) 0%, var(--taskering-secondary) 100%);
    --taskering-gradient-secondary: linear-gradient(135deg, var(--taskering-accent) 0%, var(--taskering-danger) 100%);
    --taskering-gradient-success: linear-gradient(135deg, var(--taskering-success) 0%, var(--taskering-warning) 100%);
    
    /* Vlastní stíny */
    --ts-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Styly pro hlavní stránku s přihlašovacím formulářem */
.home-login-layout {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.home-login-layout .login-form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.home-login-layout .image-container {
    position: relative;
    overflow: hidden;
}

.home-login-layout .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-login-layout .image-container:hover img {
    transform: scale(1.05);
}

.home-login-layout .login-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.home-login-layout .login-form h1 {
    background: var(--taskering-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 2rem;
}

.home-login-layout .form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.home-login-layout .form-control:focus {
    border-color: var(--taskering-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.home-login-layout .btn-primary {
    background: var(--taskering-gradient-primary);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.home-login-layout .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Dashboard layout */
.dashboard-layout {
    min-height: 100vh;
    background: #f8f9fa;
}

/* Sidebar - Desktop */
.sidebar {
    background:#eeeee;
    border-right: 1px solid #141a22;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Desktop - sidebar je vždy viditelný */
@media (min-width: 993px) {
    .sidebar {
        position: fixed;
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand:hover {
    text-decoration: none;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}

.sidebar-nav .nav-link {
    color: rgba(57, 55, 55, 0.8)
    paddingrgba(68, 68, 68, 0.8)
    margin: 0.25rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover {
    color: rgb(20, 12, 69);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: rgba(13, 110, 253, 0.18);
    color: rgb(20, 12, 69);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.25);
}

.sidebar-nav .nav-link img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.sidebar-nav .nav-link:hover img,
.sidebar-nav .nav-link.active img {
    opacity: 1;
}

/* Sidebar uživatel */
.sidebar-user {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--taskering-primary), var(--taskering-secondary));
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.user-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #28a745;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--taskering-dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.875rem;
    color: var(--taskering-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.user-profile-btn,
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-profile-btn:hover,
.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--taskering-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-profile-btn img,
.logout-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.user-profile-btn:hover img,
.logout-btn:hover img {
    opacity: 1;
}

/* Globální vyhledávání */
.global-search {
    position: relative;
}

.global-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1050;
}

.global-search-results .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.global-search-results .list-group-item:first-child {
    border-top: none;
}

.global-search-results .list-group-item:last-child {
    border-bottom: none;
}

.global-search-results .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #1a252f;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Responsivní design */
@media (max-width: 992px) {
    /* Sidebar mobile/tablet */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    /* Main content mobile/tablet */
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    /* Content header mobile/tablet */
    .content-header {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        position: relative;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 0.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: block;
    }
    
    .mobile-menu-toggle:hover {
        background: #f8f9fa;
    }
    
    .content-header .quick-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content-header .quick-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Global search mobile */
    .global-search-results {
        width: 280px;
        right: -40px;
    }
    
    /* Sidebar quick actions mobile */
    .sidebar-quick-actions .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .content-header {
        padding: 0.5rem;
    }
    
    .content-header .quick-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .content-header .quick-actions .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .global-search-results {
        width: 250px;
        right: -30px;
    }
    
    /* Mobile menu toggle na malých obrazovkách */
    .mobile-menu-toggle {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.4rem;
    }
}

/* Main content */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

.content-header {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 1rem;
    z-index: 100;
}

.content-header h1 {
    margin: 0;
    color: var(--taskering-dark);
    font-weight: 700;
}

.content-header .breadcrumb {
    margin: 0.5rem 0 0 0;
    background: none;
    padding: 0;
}

.content-header .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

/* Cards */
.taskering-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.taskering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.taskering-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--taskering-dark);
}

.taskering-card .card-body {
    padding: 2rem;
}

/* Buttons */
.taskering-btn {
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: none;
}

.taskering-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.taskering-btn-primary {
    background: var(--taskering-gradient-primary);
    color: white;
}

.taskering-btn-success {
    background: var(--taskering-gradient-success);
    color: white;
}

.taskering-btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.taskering-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

/* Forms */
.taskering-form .form-control {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.taskering-form .form-control:focus {
    border-color: var(--taskering-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.taskering-form .form-label {
    font-weight: 600;
    color: var(--taskering-dark);
    margin-bottom: 0.5rem;
}

/* Tables */
.taskering-table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.taskering-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    color: var(--taskering-dark);
    padding: 1rem 1.5rem;
}

.taskering-table tbody tr {
    transition: background 0.3s ease;
}

.taskering-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.taskering-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* Alerts */
.taskering-alert {
    border-radius: 15px;
    border: none;
    padding: 1.5rem 2rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.taskering-alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.taskering-alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.taskering-alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.taskering-alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Badges */
.taskering-badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taskering-badge-primary {
    background: var(--taskering-gradient-primary);
    color: white;
}

.taskering-badge-success {
    background: var(--taskering-gradient-success);
    color: white;
}

.taskering-badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.taskering-badge-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

/* Progress bars */
.taskering-progress {
    height: 12px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.taskering-progress-bar {
    background: var(--taskering-gradient-primary);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--taskering-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e9ecef;
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-left: 1rem;
}

.timeline-content h4 {
    color: var(--taskering-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.timeline-content small {
    color: #adb5bd;
    font-size: 0.875rem;
}

/* Animace */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
    100% { 
        transform: scale(1); 
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive design */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-header {
        position: static;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .home-login-layout .login-form {
        padding: 2rem;
        margin: 1rem;
    }
    
    .content-header {
        padding: 1.5rem;
    }
    
    .taskering-card .card-body {
        padding: 1.5rem;
    }
    
    .taskering-table {
        font-size: 0.875rem;
    }
    
    .taskering-table td,
    .taskering-table th {
        padding: 0.75rem 1rem;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .content-header,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .taskering-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
  


/*user styles*/

.projectDescription {
bacground-color: #dee2e6;
}