/* Grundlayout */
.todo-manager-plugin {
    font-family: Arial, sans-serif;
    color: #222;
    background: #fff;
    padding: 15px;
}

.todo-manager-header {
    margin-bottom: 1em;
    border-bottom: 2px solid #007acc;
}

.todo-manager-header h3 {
    margin: 0;
    color: #007acc;
}

/* Flex Container */
.container-flex {
    display: flex;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    width: 220px; /* fixe Sidebar-Breite */
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 1em;
}
.dropdown-kategorie {
    font-family: Arial, sans-serif;
    text-align:center;
    width:100%;
    height:35px;
    background-color:#555;
    color:#fff;
}

.sidebar ul li a.button-link {
    display: inline-block; /* block wäre ok, inline-block ermöglicht minimale Breite */
    width: 100%;           /* füllt die Sidebar-Breite */
    box-sizing: border-box;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;   /* verhindert Umbruch */
    overflow: hidden;
    text-overflow: ellipsis; /* falls doch mal zu lang */
}

.sidebar ul li a.button-link.btn-secondary {
    background-color: #555;
    color: #fff;
}

.sidebar ul li a.button-link.btn-secondary:hover {
    background-color: #444;
}

/* Suchformular */
.suchformular {
    background-color: #FAFAFA;
    padding: 10px;
    border: 1px solid #BBBBBB;
    border-radius: 7px;
    box-shadow: 0 3px 7px rgba(52,152,219,0.5);
}

.suchformular input[type="text"] {
    width: 90%;
    padding: 6px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.suchformular label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    font-size: 0.9em;
}

.suchformular .suchbutton {
    background-color: #DDDDDD;
    border-radius: 5px;
    box-shadow: 0 3px 7px rgba(52,152,219,0.5);
    color: black;
    border: none;
    padding: 7px 12px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.suchformular .suchbutton:hover {
    background-color: #BBBBBB;
}

/* Content Area */
.content-area {
    flex: 1 1 auto;
	/*background-color: #D5E1F0;*/
}

/* Tabellen */
.notes-table {
    width: 100%;
    border-collapse: collapse;
    /*margin-top: 1em;*/
}

.notes-table th,
.notes-table td {
    border: 1px solid #ddd;
    padding: 8px;
    vertical-align: top;
    text-align: left;
}

/* Angepasste Überschriften */
.notes-table th {
    background: #3399ff;  /* helleres Blau */
    color: #fff;       /* weiß */
    cursor: pointer;
    user-select: none;
}

.notes-table tr.notes-row-overdue {
    background: #ffdddd;
}

.notes-table tr.notes-row-today {
    background: #fff9d9;
}

.notes-table tr.notes-row-future {
    background: #e7f5e7;
}

.notes-table td.action-links {
    width: 120px;
    white-space: normal;
}

.notes-table td.action-links .todo-action {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 5px 0;
    padding: 6px 10px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
    border: 0;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.notes-table td.action-links .todo-action:hover {
    opacity: 0.88;
    text-decoration: none;
}

.notes-table td.action-links a.todo-action-edit {
    background: #28a745;
}

.notes-table td.action-links .todo-action-view {
    background: #337ab7;
    color: #fff;
    cursor: pointer;
}

.notes-table td.action-links a.todo-action-delete {
    background: #d9534f;
}

.notes-table td.action-links a.todo-action-archive {
    background: #f0ad4e;
    color: #222;
}

.notes-table .todo-task-title {
    display: block;
    color: #1f2d38;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.notes-table .todo-content-row[hidden] {
    display: none;
}

.notes-table .todo-content-row td {
    padding: 0;
    border-top: 0;
}

.notes-table .todo-content-panel {
    max-height: 420px;
    padding: 14px 18px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.notes-table .notes-summary-row td.action-links {
    vertical-align: top;
}

.notes-status-done {
    color: green;
    font-weight: bold;
}

.notes-status-open {
    color: red;
    font-weight: bold;
}

/* Formulare */
.note-form {
    max-width: 600px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.note-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-weight: bold;
}

.note-form input[type="text"],
.note-form input[type="datetime-local"],
.note-form select,
.note-form textarea {
    width: 100%;
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.note-form textarea {
    resize: vertical;
}

.form-row-inline {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.form-field-small {
    flex: 1;
}

.btn-primary {
    margin-top: 15px;
    background: #007acc;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
}

.btn-primary:hover {
    background: #005f99;
}

.cancel-link {
    margin-left: 15px;
    color: #777;
    text-decoration: none;
    font-size: 0.9em;
}

.cancel-link:hover {
    text-decoration: underline;
}

.btn-clear-date {
    background: #ccc;
    border: none;
    cursor: pointer;
    margin-left: 5px;
    font-size: 1.1em;
    padding: 0 6px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 720px) {
    .container-flex {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 15px;
    }
}


/* ============================================================
   Übernommenes Inline-CSS aus PHP-Datei
   Quelle: categories.php
   ============================================================ */

.todo-cat-container { font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif; padding:20px; max-width:1000px; margin:0 auto; background:#fff; }
.todo-cat-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; }
.todo-cat-table { width:100%; border-collapse:collapse; margin-top:10px; font-size:14px; }
.todo-cat-table th, .todo-cat-table td { border:1px solid #e0e0e0; padding:8px 10px; vertical-align:top; }
.todo-cat-table th { background:#007ACC; color:#fff; text-align:left; font-weight:600; }
.todo-cat-form { display:none; margin-bottom:20px; background:#f9f9f9; padding:15px; border-radius:6px; box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.todo-cat-form .form-row { display:flex; align-items:center; gap:10px; margin-top:10px; }
.todo-cat-form label { width:140px; font-weight:500; color:#333; }
.todo-cat-form input, .todo-cat-form textarea, .todo-cat-form select { flex:1; padding:6px 8px; border:1px solid #ccc; border-radius:4px; font-size:14px; }
.todo-cat-table input, .todo-cat-table textarea, .todo-cat-table select { width:100%; box-sizing:border-box; padding:4px 6px; border:1px solid #ccc; border-radius:4px; font-size:13px; }
.todo-cat-table textarea { height:50px; resize:none; vertical-align:top; }
.todo-cat-actions { width:120px; white-space:normal; }
.todo-cat-action {
    display:block;
    box-sizing:border-box;
    width:100%;
    margin:0 0 5px 0;
    padding:6px 10px;
    border:0;
    border-radius:4px;
    color:#fff;
    cursor:pointer;
    font-size:0.9em;
    font-weight:700;
    line-height:1.2;
    text-align:center;
}
.todo-cat-action.save { background:#28a745; }
.todo-cat-action.delete { background:#d9534f; }
.todo-cat-action:hover { opacity:0.88; }
.error { color:#d9534f; font-weight:500; }
.success { color:#28a745; font-weight:500; }
.toggle-form-link { background-color:#007acc; color:white; border:none; border-radius:4px; padding:4px 10px; font-weight:bold; font-family:Arial,sans-serif; font-size:0.9em; cursor:pointer; }


/* ============================================================
   Übernommenes Inline-CSS aus PHP-Datei
   Quelle: help.php
   ============================================================ */

.todo-help-container { background-color:#1e1e1e; color:#ffffff; padding:20px 30px; border-radius:8px; box-shadow:0 4px 10px rgba(0,0,0,0.5); margin:20px 0; font-family:Arial,sans-serif; line-height:1.5; }
.todo-help-container h2 { color:#007ACC; margin-top:0; }
.todo-help-container ul { list-style-type:disc; padding-left:20px; }
.todo-help-container ul li { margin-bottom:10px; }
.todo-help-container a { color:#007ACC; font-weight:bold; text-decoration:none; transition:color 0.2s ease-in-out; }
.todo-help-container a:hover { color:#005fa3; }


/* ============================================================
   Übernommenes Inline-CSS aus PHP-Datei
   Quelle: todo_manager_backendfunctions.php
   ============================================================ */

.hinweis {
    background-color: #fff4f4;
    border: 1px solid #ff4d4d;
    color: #a70000;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    font-size: 1.1em;
}
.hinweis ul {
    margin-top: 10px;
    padding-left: 20px;
}
.hinweis a {
    color: #a70000;
    text-decoration: underline;
}
