:root {
    --primary-color: #15908d;
    --primary-dark: #117a77;
    --bg-color: #f4f6f8;
    --text-color: #333;
    --sidebar-width: 250px;
    --header-height: 60px;
}

* {
    box_sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.9em;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Layout (Admin & User Panel) */
.wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    background-color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.sidebar ul {
    list-style: none;
    padding-top: 20px;
}

.sidebar ul li {
    padding: 0;
}

.sidebar ul li a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s;
    border-left: 4px solid transparent;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background-color: #34495e;
    border-left-color: var(--primary-color);
}

.user-info {
    margin-top: auto;
    padding: 20px;
    background-color: #233140;
    font-size: 0.9em;
    text-align: center;
}

.user-info a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.header {
    height: var(--header-height);
    background-color: white;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-body {
    padding: 30px;
}

.card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #e1e4e8;
    text-align: left;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Utilities */
.text-right { text-align: right; }
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 20px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.8em; }
.badge-planned { background: #ffc107; color: #333; }
.badge-completed { background: #28a745; color: white; }

/* Report iframe */
.report-frame {
    width: 100%;
    height: calc(100vh - 150px);
    border: none;
    background: white;
}

/* Admin Private Notes */
.admin-note-block {
    background-color: #fff9c4; /* Jasny żółty */
    border: 1px solid #fbc02d;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-note-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #d32f2f;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1em;
}
