﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* --- STICKY FOOTER --- */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
}

/* --- STYLE DLA PULPITÓW --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
}

.grid-item-main-chart {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}

.grid-item-summary {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.grid-item-stats {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

.grid-item-activity {
    grid-column: 1 / 5;
    grid-row: 3 / 4;
}

.card .border-left-primary {
    border-left: .25rem solid #4e73df !important;
}

.card .border-left-success {
    border-left: .25rem solid #1cc88a !important;
}

.card .border-left-info {
    border-left: .25rem solid #36b9cc !important;
}

.card .border-left-warning {
    border-left: .25rem solid #f6c23e !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-xs {
    font-size: .7rem;
}

.hover-effect {
    transition: background-color 0.2s ease-in-out;
}

    .hover-effect:hover {
        background-color: #f8f9fa;
    }

/* --- STYLE DLA CZATU --- */
.chat-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: 100%;
    height: calc(100vh - 200px);
    gap: 1rem;
}

.user-list-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

    .user-list-card .card-header {
        font-weight: 600;
        background-color: #f8f9fa;
    }

.user-list {
    overflow-y: auto;
    flex-grow: 1;
}

    .user-list .list-group-item {
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

        .user-list .list-group-item:last-child {
            border-bottom: none;
        }

        .user-list .list-group-item.active {
            background-color: #0d6efd;
            color: #fff;
            font-weight: 600;
        }

.chat-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
}

.chat-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f0f2f5;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-end;
    max-width: 75%;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-content {
    display: flex;
    flex-direction: column;
}

.message-bubble {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-radius: 18px;
}

.message-sender {
    font-weight: bold;
    font-size: 0.8rem;
    color: #0d6efd;
    margin-bottom: 5px;
}

.message-timestamp {
    font-size: 0.7rem;
    color: #999;
    margin-top: 5px;
    padding: 0 5px;
}

.message-sent {
    flex-direction: row-reverse;
    margin-left: auto;
}

    .message-sent .message-content {
        align-items: flex-end;
    }

    .message-sent .message-bubble {
        background-color: #0d6efd;
        color: white;
    }

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

    .chat-input-area .form-control {
        border-radius: 20px 0 0 20px;
        border-right: 0;
    }

    .chat-input-area .btn {
        border-radius: 0 20px 20px 0;
    }

/* --- STYLE DLA PROFILU --- */
.avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    margin-left: auto;
    margin-right: auto;
}

/* --- STYLE DLA STRONY GŁÓWNEJ --- */
.stat-card {
    border-radius: 12px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    color: #fff;
}

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .stat-card .card-body {
        position: relative;
        z-index: 2;
    }

    .stat-card .icon-background {
        position: absolute;
        right: -20px;
        bottom: -20px;
        font-size: 6rem;
        opacity: 0.15;
        transform: rotate(-15deg);
        z-index: 1;
        transition: transform 0.3s ease;
    }

    .stat-card:hover .icon-background {
        transform: rotate(-5deg) scale(1.1);
    }

.stat-card-distance {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
}

.stat-card-routes {
    background: linear-gradient(135deg, #198754, #20c997);
}

.stat-card-drivers {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-card h2 {
    font-size: 2.5rem;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.8);
}

.feature-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .feature-card .icon-circle {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(13, 110, 253, 0.1);
        color: #0d6efd;
        font-size: 2.5rem;
        margin-bottom: 20px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .feature-card:hover .icon-circle {
        background-color: #0d6efd;
        color: #fff;
    }
