* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: #333;
}

.header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position:fixed;
    width:100%;
    z-index:100;
}

.header h2 {
    font-size: 18px;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info span {
    color: #ddd;
    font-size: 14px;
}

.user-info a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: bold;
}

.user-info a:hover {
    text-decoration: underline;
}

.container {
    display: block;
    width:100% !important;
    max-width:100% !important;
}

.sidebar {
    width: 200px;
    background-color: #444;
    color: #fff;
    height: calc(100vh - 40px); /* header ve footer'a göre yükseklik ayarlandı */
    padding-top: 20px;
    transition: width 0.3s;
    position: fixed;
    top:40px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
}

.sidebar ul li a:hover {
    background-color: #555;
}

.main-content {
    margin-left: 200px; /* Sidebar genişliği kadar boşluk bırak */
    padding: 20px;
    flex: 1;
    transition: margin-left 0.3s;
    top:40px;
    position:relative;
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px; /* header'a uygun yükseklik ayarlandı */
}

h1 {
    margin-bottom: 20px;
}

form {
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

form label {
    flex: 1 1 100%;
    margin-bottom: 5px;
}

form input, form button {
    padding: 8px;
    font-size: 14px;
    flex: 1 1 45%;
}

form button {
    background-color: #4A90E2;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #357ABD;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

a {
    color: #FF6347;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.sidebar.closed {
    width: 50px;
}

#toggle-sidebar {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.sidebar ul li a {
    display: inline-block;
    padding-left: 5px;
}

.sidebar.closed ul li a {
    display: none;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #333;
}

.loading.hidden {
    display: none;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Genişliği %60 olarak güncelledik */
    max-width: 500px; /* Maksimum genişlik olarak 400px ayarladık */
    border-radius: 8px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
span.close-print, span.close {
    position: absolute;
    right: 10px;
    font-size: 30px;
}

div#print-modal {
    font-size: smaller;
}