* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 50px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #acac90;
    min-height: 100vh;
}

.navbar {
    min-height: 40px;
    font-size: 15px;
}

.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 21px;
    font-size: 11px;
    color: rgb(34, 255, 0);
    background-color: #8a8a70;
    border: solid;
    border-width: 1px;
    border-color: rgb(64, 255, 0);
    text-align: center;
    z-index: 1000;
}

.sekcja1 {
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.register-card {
    max-width: 460px;
    margin: 3rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

.crm-card {
    background: #d4d4b8;
    border: 1px solid #9a9a7e;
    border-radius: 12px;
    color: #333;
}

.crm-card .card-header {
    background-color: #c4c4a8;
    border-bottom: 1px solid #9a9a7e;
    border-radius: 12px 12px 0 0;
}

.ticket-item {
    background: #e8e8d0;
    border: 1px solid #b0b098;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.ticket-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ticket-question {
    border-left: 4px solid #1a237e;
    padding-left: 12px;
    margin-bottom: 8px;
}

.ticket-answer {
    border-left: 4px solid #2e7d32;
    padding-left: 12px;
    background: #f0f5e8;
    border-radius: 4px;
    padding: 10px 12px;
    margin-top: 8px;
}

.ticket-no-answer {
    border-left: 4px solid #f57c00;
    padding-left: 12px;
    color: #bf360c;
    font-style: italic;
}

/* Star rating */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.6rem;
    color: #ccc;
    transition: color 0.15s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

.stars-display {
    color: #ffc107;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.stars-display .empty {
    color: #ccc;
}

/* Stats cards */
.stat-card {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card h2 {
    font-size: 2.5rem;
    margin: 0;
}

.stat-card p {
    margin: 5px 0 0;
    opacity: 0.85;
}

/* Performance icons */
.perf-icon {
    font-size: 2.5rem;
    display: inline-block;
}

/* Menu cards on index */
.menu-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.menu-card h5 {
    margin-bottom: 0.5rem;
}

/* Thread / communicator */
.thread-msg {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    max-width: 80%;
}

.thread-client {
    background: #e3f2fd;
    border-left: 4px solid #1565c0;
    margin-right: auto;
}

.thread-worker {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    margin-left: auto;
}

/* Table */
.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .sekcja1 {
        margin-top: 15px;
    }

    .menu-card i {
        font-size: 2rem;
    }
}
