﻿/*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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h1 {
    text-align: center;
    padding: 20px;
    color: #2c3e50;
    background-color: #3498db;
    color: white;
    margin-bottom: 0;
}

.controls {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #ecf0f1;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex-grow: 1;
    margin-right: 10px;
}

    .search-box input {
        width: 100%;
        padding: 10px 15px 10px 40px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
    }

    .search-box::before {
        content: "🔍";
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #7f8c8d;
    }

.pagination-controls {
    display: flex;
    align-items: center;
}

    .pagination-controls select {
        padding: 8px;
        margin-right: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    button:hover {
        background-color: #2980b9;
    }

    button:disabled {
        background-color: #bdc3c7;
        cursor: not-allowed;
    }

.table-container {
    overflow-x: auto;
    padding: 0 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    position: relative;
}

    th:hover {
        background-color: #2980b9;
    }

    th::after {
        content: "↓";
        position: absolute;
        right: 10px;
        opacity: 0.5;
    }

    th.asc::after {
        content: "↑";
    }

    th.desc::after {
        content: "↓";
    }

td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: #f39c12;
    color: white;
}

.status-completed {
    background-color: #27ae60;
    color: white;
}

.status-cancelled {
    background-color: #e74c3c;
    color: white;
}

.priority {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.priority-low {
    background-color: #27ae60;
    color: white;
}

.priority-medium {
    background-color: #f39c12;
    color: white;
}

.priority-high {
    background-color: #e74c3c;
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 15px;
}

    .pagination button {
        margin: 0 5px;
    }

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }

    .search-box {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .pagination-controls {
        margin-top: 10px;
        justify-content: space-between;
        width: 100%;
    }

    th, td {
        padding: 8px 10px;
        font-size: 14px;
    }
}