11 Commits
Author SHA1 Message Date
Michael 8cebc3c2fa Redesign UI to be a stunning visual glassmorphic masterpiece and automate version synchronization in compiled exe metadata 2026-05-26 21:50:10 +02:00
Michael 9067b93c88 Fix early text truncation on task card and improve card contrast and layout 2026-05-26 21:26:47 +02:00
Michael 891782515d Implement click to expand long tasks, a custom glassmorphic delete confirmation modal, and background transparency slider in settings 2026-05-26 21:14:01 +02:00
Michael 8214b2e9ac Implement task edit (inline with double click or edit button) and task delete features 2026-05-26 21:01:00 +02:00
Michael 63d8a1c4e1 Configure release tag to dynamically match the pushed git tag name 2026-05-26 20:48:34 +02:00
Michael 87eeba192f Enable withGlobalTauri in config and create dedicated header drag zone to fix window drag and button click issues 2026-05-26 20:39:35 +02:00
Michael 753dec84c5 Replace placeholder green app icons with a custom premium 3D glowing neon checkmark icon generated via AI 2026-05-26 20:36:15 +02:00
Michael 06736a32be Remove drag-region from header container to fix button click interception in Tauri on Windows 2026-05-26 20:29:50 +02:00
Michael f400b2413d Fix Tauri window focus method by using set_focus instead of focus 2026-05-26 20:17:06 +02:00
Michael df5e562ea6 Fix winreg predef and tauri systemTray config to enable system-tray Cargo feature 2026-05-26 20:07:54 +02:00
Michael c8fd2346b4 Add [features] and custom-protocol for production build in Cargo.toml 2026-05-26 18:23:13 +02:00
23 changed files with 618 additions and 160 deletions

No files matched your search

+18 -2
View File
@@ -38,13 +38,29 @@ jobs:
cd widget cd widget
npm install npm install
- name: Update version in tauri.conf.json
shell: bash
run: |
TAG_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
if [[ ! "$TAG_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
TAG_VERSION="1.0.0"
fi
echo "Updating tauri.conf.json version to $TAG_VERSION"
node -e "
const fs = require('fs');
const file = './widget/src-tauri/tauri.conf.json';
const config = JSON.parse(fs.readFileSync(file, 'utf8'));
config.package.version = '$TAG_VERSION';
fs.writeFileSync(file, JSON.stringify(config, null, 2), 'utf8');
"
- name: Build the Tauri app - name: Build the Tauri app
uses: tauri-apps/tauri-action@v0 uses: tauri-apps/tauri-action@v0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tagName: v__VERSION__ tagName: ${{ github.ref_name }}
releaseName: 'TodoFlow v__VERSION__' releaseName: 'TodoFlow ${{ github.ref_name }}'
releaseBody: 'Release generated automatically by GitHub Actions.' releaseBody: 'Release generated automatically by GitHub Actions.'
releaseDraft: true releaseDraft: true
prerelease: false prerelease: false
+4
View File
@@ -21,3 +21,7 @@ codegen-units = 1
lto = true lto = true
opt-level = "z" opt-level = "z"
strip = true strip = true
[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 B

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

+4 -4
View File
@@ -28,7 +28,7 @@ fn set_autostart(enabled: bool) -> Result<(), String> {
// Permet d'activer ou de désactiver le lancement automatique au démarrage de Windows. // Permet d'activer ou de désactiver le lancement automatique au démarrage de Windows.
// On écrit directement dans le registre Windows (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run) // On écrit directement dans le registre Windows (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run)
// ce qui évite d'avoir à gérer un installateur complexe ou des plugins externes lourds. // ce qui évite d'avoir à gérer un installateur complexe ou des plugins externes lourds.
let hkcu = RegKey::predefined(HKEY_CURRENT_USER); let hkcu = RegKey::predef(HKEY_CURRENT_USER);
let run_key = hkcu let run_key = hkcu
.open_subkey_with_flags( .open_subkey_with_flags(
r"Software\Microsoft\Windows\CurrentVersion\Run", r"Software\Microsoft\Windows\CurrentVersion\Run",
@@ -55,7 +55,7 @@ fn set_autostart(enabled: bool) -> Result<(), String> {
#[tauri::command] #[tauri::command]
fn get_autostart() -> Result<bool, String> { fn get_autostart() -> Result<bool, String> {
// Lit le registre Windows pour vérifier si l'application est configurée pour démarrer automatiquement. // Lit le registre Windows pour vérifier si l'application est configurée pour démarrer automatiquement.
let hkcu = RegKey::predefined(HKEY_CURRENT_USER); let hkcu = RegKey::predef(HKEY_CURRENT_USER);
let run_key = hkcu let run_key = hkcu
.open_subkey_with_flags( .open_subkey_with_flags(
r"Software\Microsoft\Windows\CurrentVersion\Run", r"Software\Microsoft\Windows\CurrentVersion\Run",
@@ -89,7 +89,7 @@ fn main() {
window.hide().unwrap(); window.hide().unwrap();
} else { } else {
window.show().unwrap(); window.show().unwrap();
window.focus().unwrap(); window.set_focus().unwrap();
} }
} }
SystemTrayEvent::MenuItemClick { id, .. } => match id.as_str() { SystemTrayEvent::MenuItemClick { id, .. } => match id.as_str() {
@@ -102,7 +102,7 @@ fn main() {
window.hide().unwrap(); window.hide().unwrap();
} else { } else {
window.show().unwrap(); window.show().unwrap();
window.focus().unwrap(); window.set_focus().unwrap();
} }
} }
_ => {} _ => {}
+7 -1
View File
@@ -3,7 +3,8 @@
"distDir": "../src", "distDir": "../src",
"devPath": "../src", "devPath": "../src",
"beforeDevCommand": "", "beforeDevCommand": "",
"beforeBuildCommand": "" "beforeBuildCommand": "",
"withGlobalTauri": true
}, },
"package": { "package": {
"productName": "TodoFlow", "productName": "TodoFlow",
@@ -48,6 +49,11 @@
"security": { "security": {
"csp": null "csp": null
}, },
"systemTray": {
"iconPath": "icons/icon.ico",
"iconAsTemplate": false,
"menuOnLeftClick": false
},
"windows": [ "windows": [
{ {
"fullscreen": false, "fullscreen": false,
+173
View File
@@ -11,6 +11,7 @@ let state = {
apiKey: "widget-token-secure-789", apiKey: "widget-token-secure-789",
alwaysOnTop: false, alwaysOnTop: false,
autostart: false, autostart: false,
opacity: 70,
tasks: [], tasks: [],
pollingInterval: null pollingInterval: null
}; };
@@ -38,6 +39,10 @@ const inputAutostart = document.getElementById("setting-autostart");
const btnMinimize = document.getElementById("btn-minimize"); const btnMinimize = document.getElementById("btn-minimize");
const btnClose = document.getElementById("btn-close"); const btnClose = document.getElementById("btn-close");
const inputOpacity = document.getElementById("setting-opacity");
const opacityValue = document.getElementById("opacity-value");
let taskToDeleteId = null;
// --- INITIALISATION --- // --- INITIALISATION ---
document.addEventListener("DOMContentLoaded", async () => { document.addEventListener("DOMContentLoaded", async () => {
@@ -48,6 +53,33 @@ document.addEventListener("DOMContentLoaded", async () => {
inputApiUrl.value = state.apiUrl; inputApiUrl.value = state.apiUrl;
inputApiKey.value = state.apiKey; inputApiKey.value = state.apiKey;
inputAlwaysOnTop.checked = state.alwaysOnTop; inputAlwaysOnTop.checked = state.alwaysOnTop;
inputOpacity.value = state.opacity;
opacityValue.textContent = state.opacity;
// Real-time opacity slider updates
inputOpacity.addEventListener("input", () => {
const val = inputOpacity.value;
opacityValue.textContent = val;
document.documentElement.style.setProperty("--widget-opacity", val / 100);
});
// Modal de confirmation de suppression personnalisé
const confirmModal = document.getElementById("confirm-modal");
const btnConfirmCancel = document.getElementById("btn-confirm-cancel");
const btnConfirmDelete = document.getElementById("btn-confirm-delete");
btnConfirmCancel.addEventListener("click", () => {
confirmModal.classList.remove("open");
taskToDeleteId = null;
});
btnConfirmDelete.addEventListener("click", async () => {
if (taskToDeleteId) {
confirmModal.classList.remove("open");
await executeDeleteTask(taskToDeleteId);
taskToDeleteId = null;
}
});
// Événements d'ouverture/fermeture des paramètres // Événements d'ouverture/fermeture des paramètres
btnSettings.addEventListener("click", () => settingsPanel.classList.add("open")); btnSettings.addEventListener("click", () => settingsPanel.classList.add("open"));
@@ -88,6 +120,7 @@ function loadSettingsFromStorage() {
const storedApiUrl = localStorage.getItem("todoflow_api_url"); const storedApiUrl = localStorage.getItem("todoflow_api_url");
const storedApiKey = localStorage.getItem("todoflow_api_key"); const storedApiKey = localStorage.getItem("todoflow_api_key");
const storedAlwaysOnTop = localStorage.getItem("todoflow_always_on_top"); const storedAlwaysOnTop = localStorage.getItem("todoflow_always_on_top");
const storedOpacity = localStorage.getItem("todoflow_opacity");
if (storedApiUrl) state.apiUrl = storedApiUrl; if (storedApiUrl) state.apiUrl = storedApiUrl;
if (storedApiKey) state.apiKey = storedApiKey; if (storedApiKey) state.apiKey = storedApiKey;
@@ -98,6 +131,13 @@ function loadSettingsFromStorage() {
invoke("toggle_always_on_top", { enabled: state.alwaysOnTop }).catch(console.error); invoke("toggle_always_on_top", { enabled: state.alwaysOnTop }).catch(console.error);
} }
} }
if (storedOpacity) {
state.opacity = parseInt(storedOpacity);
document.documentElement.style.setProperty("--widget-opacity", state.opacity / 100);
} else {
state.opacity = 70;
document.documentElement.style.setProperty("--widget-opacity", 0.70);
}
} }
async function saveSettings() { async function saveSettings() {
@@ -105,14 +145,17 @@ async function saveSettings() {
const newKey = inputApiKey.value.trim(); const newKey = inputApiKey.value.trim();
const newAlwaysOnTop = inputAlwaysOnTop.checked; const newAlwaysOnTop = inputAlwaysOnTop.checked;
const newAutostart = inputAutostart.checked; const newAutostart = inputAutostart.checked;
const newOpacity = inputOpacity.value;
state.apiUrl = newUrl; state.apiUrl = newUrl;
state.apiKey = newKey; state.apiKey = newKey;
state.alwaysOnTop = newAlwaysOnTop; state.alwaysOnTop = newAlwaysOnTop;
state.opacity = parseInt(newOpacity);
localStorage.setItem("todoflow_api_url", newUrl); localStorage.setItem("todoflow_api_url", newUrl);
localStorage.setItem("todoflow_api_key", newKey); localStorage.setItem("todoflow_api_key", newKey);
localStorage.setItem("todoflow_always_on_top", newAlwaysOnTop.toString()); localStorage.setItem("todoflow_always_on_top", newAlwaysOnTop.toString());
localStorage.setItem("todoflow_opacity", newOpacity.toString());
// Appel des fonctions système Windows natives via Tauri // Appel des fonctions système Windows natives via Tauri
if (appWindow && invoke) { if (appWindow && invoke) {
@@ -265,6 +308,14 @@ function renderTasksList() {
const card = document.createElement("div"); const card = document.createElement("div");
card.className = `task-card ${isCompleted ? 'completed' : ''}`; card.className = `task-card ${isCompleted ? 'completed' : ''}`;
// Clic pour étendre/réduire le titre si long
card.addEventListener("click", (e) => {
if (e.target.closest(".custom-checkbox") || e.target.closest(".btn-task-action") || e.target.closest(".task-edit-input")) {
return;
}
card.classList.toggle("expanded");
});
// Checkbox personnalisée cochable // Checkbox personnalisée cochable
const checkbox = document.createElement("div"); const checkbox = document.createElement("div");
checkbox.className = `custom-checkbox ${isCompleted ? 'checked' : ''}`; checkbox.className = `custom-checkbox ${isCompleted ? 'checked' : ''}`;
@@ -294,6 +345,39 @@ function renderTasksList() {
content.appendChild(title); content.appendChild(title);
content.appendChild(date); content.appendChild(date);
// Container d'actions (Edit / Delete)
const actions = document.createElement("div");
actions.className = "task-actions";
// Bouton Modifier
const btnEdit = document.createElement("button");
btnEdit.className = "btn-task-action btn-edit";
btnEdit.title = "Modifier la tâche";
btnEdit.innerHTML = `<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4z"/></svg>`;
btnEdit.addEventListener("click", (e) => {
e.stopPropagation();
startEditingTask(task.id, card, title, task.title);
});
// Double-clic sur le titre pour éditer également
title.addEventListener("dblclick", (e) => {
e.stopPropagation();
startEditingTask(task.id, card, title, task.title);
});
// Bouton Supprimer
const btnDelete = document.createElement("button");
btnDelete.className = "btn-task-action btn-delete";
btnDelete.title = "Supprimer la tâche";
btnDelete.innerHTML = `<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/></svg>`;
btnDelete.addEventListener("click", (e) => {
e.stopPropagation();
deleteTask(task.id);
});
actions.appendChild(btnEdit);
actions.appendChild(btnDelete);
// Badge de statut (En cours / À faire) // Badge de statut (En cours / À faire)
const badge = document.createElement("span"); const badge = document.createElement("span");
@@ -314,6 +398,7 @@ function renderTasksList() {
card.appendChild(checkbox); card.appendChild(checkbox);
card.appendChild(content); card.appendChild(content);
card.appendChild(actions);
card.appendChild(badge); card.appendChild(badge);
tasksList.appendChild(card); tasksList.appendChild(card);
@@ -337,3 +422,91 @@ function formatDate(dateString) {
return dateString; return dateString;
} }
} }
// --- NOUVELLES FONCTIONS DE SUPPRESSION ET MODIFICATION ---
function startEditingTask(taskId, card, titleElement, currentTitle) {
if (card.classList.contains("editing")) return;
card.classList.add("editing");
const input = document.createElement("input");
input.type = "text";
input.className = "task-edit-input";
input.value = currentTitle;
input.maxLength = 100;
titleElement.innerHTML = "";
titleElement.appendChild(input);
input.focus();
input.select();
const finishEditing = async (save) => {
const newTitle = input.value.trim();
card.classList.remove("editing");
if (save && newTitle && newTitle !== currentTitle) {
titleElement.textContent = newTitle;
await updateTaskTitle(taskId, newTitle);
} else {
titleElement.textContent = currentTitle;
}
};
input.addEventListener("keydown", (e) => {
if (e.key === "Enter") {
finishEditing(true);
} else if (e.key === "Escape") {
finishEditing(false);
}
});
input.addEventListener("blur", () => {
finishEditing(true);
});
input.addEventListener("click", (e) => e.stopPropagation());
}
async function updateTaskTitle(taskId, newTitle) {
try {
const response = await fetch(`${state.apiUrl}/api/v1/tasks/${taskId}`, {
method: "PUT",
headers: {
"Content-Type": "application/json",
"X-API-Key": state.apiKey
},
body: JSON.stringify({
title: newTitle
})
});
if (!response.ok) throw new Error("Échec de la mise à jour");
fetchTasks();
} catch (error) {
console.error("Erreur de mise à jour du titre :", error);
alert("Impossible de modifier la tâche.");
}
}
function deleteTask(taskId) {
taskToDeleteId = taskId;
const modal = document.getElementById("confirm-modal");
modal.classList.add("open");
}
async function executeDeleteTask(taskId) {
try {
const response = await fetch(`${state.apiUrl}/api/v1/tasks/${taskId}`, {
method: "DELETE",
headers: {
"X-API-Key": state.apiKey
}
});
if (!response.ok) throw new Error("Échec de la suppression");
fetchTasks();
} catch (error) {
console.error("Erreur de suppression de la tâche :", error);
alert("Impossible de supprimer la tâche.");
}
}
+19 -2
View File
@@ -13,8 +13,8 @@
<body> <body>
<div class="todo-widget"> <div class="todo-widget">
<!-- Barre supérieure personnalisée avec zone de déplacement pour Tauri --> <!-- Barre supérieure personnalisée avec zone de déplacement pour Tauri -->
<header class="widget-header" data-tauri-drag-region> <header class="widget-header">
<div class="header-left" data-tauri-drag-region> <div class="header-drag-zone" data-tauri-drag-region>
<span class="status-indicator disconnected" id="connection-status" title="Déconnecté"></span> <span class="status-indicator disconnected" id="connection-status" title="Déconnecté"></span>
<h1 class="widget-title" data-tauri-drag-region>TodoFlow</h1> <h1 class="widget-title" data-tauri-drag-region>TodoFlow</h1>
</div> </div>
@@ -84,6 +84,11 @@
</label> </label>
</div> </div>
<div class="setting-group">
<label for="setting-opacity">Transparence du fond (<span id="opacity-value">70</span>%)</label>
<input type="range" id="setting-opacity" min="20" max="100" value="70" class="slider-opacity">
</div>
<div class="setting-toggle"> <div class="setting-toggle">
<label class="switch-container"> <label class="switch-container">
<span class="switch-label">Lancer au démarrage</span> <span class="switch-label">Lancer au démarrage</span>
@@ -102,6 +107,18 @@
// Import dynamique pour supporter l'exécution dans le navigateur pendant le dév // Import dynamique pour supporter l'exécution dans le navigateur pendant le dév
window.__TAURI__ = window.__TAURI__ || null; window.__TAURI__ = window.__TAURI__ || null;
</script> </script>
<!-- Modal de confirmation de suppression personnalisé (Thème Glassmorphism) -->
<div class="confirm-modal-overlay" id="confirm-modal">
<div class="confirm-modal-box">
<h3>Supprimer la tâche ?</h3>
<p>Cette action est irréversible et supprimera définitivement la tâche de la base SaaS.</p>
<div class="confirm-modal-actions">
<button class="btn-confirm-cancel" id="btn-confirm-cancel">Annuler</button>
<button class="btn-confirm-delete" id="btn-confirm-delete">Supprimer</button>
</div>
</div>
</div>
<script src="app.js"></script> <script src="app.js"></script>
</body> </body>
</html> </html>
+393 -151
View File
@@ -1,37 +1,43 @@
/* --- SYSTÈME DE DESIGN & TOKENS --- */ /* --- SYSTÈME DE DESIGN & TOKENS FUTURISTES --- */
:root { :root {
--bg-widget: rgba(18, 22, 33, 0.70); --widget-opacity: 0.70;
--bg-card: rgba(255, 255, 255, 0.03); --bg-widget: rgba(11, 14, 26, var(--widget-opacity));
--bg-card-hover: rgba(255, 255, 255, 0.07); --bg-card: rgba(255, 255, 255, 0.035);
--border-widget: 1px solid rgba(255, 255, 255, 0.09); --bg-card-hover: rgba(255, 255, 255, 0.08);
--border-card: 1px solid rgba(255, 255, 255, 0.05); --border-widget: 1px solid rgba(255, 255, 255, 0.11);
--border-card: 1px solid rgba(255, 255, 255, 0.06);
/* Couleurs thématiques HSL */ /* Couleurs de marque HSL vibrantes */
--accent-indigo: hsl(250, 85%, 65%); --accent-indigo: hsl(250, 95%, 68%);
--accent-indigo-glow: rgba(99, 102, 241, 0.3); --accent-indigo-glow: rgba(99, 102, 241, 0.35);
--accent-mint: hsl(165, 80%, 42%);
--accent-mint-glow: rgba(16, 185, 129, 0.15); --accent-mint: hsl(165, 90%, 45%);
--accent-amber: hsl(38, 95%, 55%); --accent-mint-glow: rgba(16, 185, 129, 0.2);
--accent-amber-glow: rgba(245, 158, 11, 0.15);
--accent-amber: hsl(38, 95%, 58%);
--accent-amber-glow: rgba(245, 158, 11, 0.2);
/* Textes */ /* Textes */
--text-primary: hsl(220, 20%, 96%); --text-primary: hsl(220, 20%, 97%);
--text-secondary: hsl(220, 12%, 68%); --text-secondary: hsl(220, 14%, 72%);
--text-muted: rgba(241, 243, 249, 0.45); --text-muted: rgba(241, 243, 249, 0.40);
/* Gradients */
--gradient-primary: linear-gradient(135deg, var(--accent-indigo), var(--accent-mint));
--gradient-card-hover: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.05));
} }
/* Réinitialisation de base */ /* Réinitialisation moderne */
* { * {
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
padding: 0; padding: 0;
user-select: none; /* Évite la sélection de texte accidentelle pour un widget */ user-select: none;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
} }
body { body {
background: transparent; /* Indispensable pour la transparence de la fenêtre Tauri */ background: transparent;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: var(--text-primary);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@@ -39,139 +45,148 @@ body {
overflow: hidden; overflow: hidden;
} }
/* --- LE CONTAINER DU WIDGET (GLASSMORPHISM PREMIUM) --- */ /* --- LE CONTAINER DU WIDGET (GLASSMORPHISM ABSOLU) --- */
.todo-widget { .todo-widget {
width: 340px; width: 340px;
height: 520px; height: 520px;
background: var(--bg-widget); background: var(--bg-widget);
backdrop-filter: blur(30px) saturate(125%); backdrop-filter: blur(40px) saturate(150%);
-webkit-backdrop-filter: blur(30px) saturate(125%); -webkit-backdrop-filter: blur(40px) saturate(150%);
border-radius: 16px; border-radius: 20px;
border: var(--border-widget); border: var(--border-widget);
box-shadow: box-shadow:
0 8px 32px 0 rgba(0, 0, 0, 0.35), 0 12px 40px 0 rgba(0, 0, 0, 0.5),
0 1px 0px 0px rgba(255, 255, 255, 0.12) inset; 0 1px 0px 0px rgba(255, 255, 255, 0.15) inset;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
transition: background 0.3s ease;
} }
/* --- HEADER DU WIDGET --- */ /* --- HEADER DU WIDGET --- */
.widget-header { .widget-header {
padding: 16px 16px 12px 16px; padding: 18px 18px 12px 18px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
cursor: grab; /* Indique qu'on peut faire glisser le widget */
} }
.widget-header:active { .header-drag-zone {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
height: 100%;
cursor: grab;
}
.header-drag-zone:active {
cursor: grabbing; cursor: grabbing;
} }
.header-left { /* Indicateur d'état connecté lumineux */
display: flex;
align-items: center;
gap: 8px;
}
/* Indicateur d'état connecté à l'API */
.status-indicator { .status-indicator {
width: 8px; width: 9px;
height: 8px; height: 9px;
border-radius: 50%; border-radius: 50%;
transition: all 0.5s ease; transition: all 0.4s ease;
} }
.status-indicator.connected { .status-indicator.connected {
background-color: var(--accent-mint); background-color: var(--accent-mint);
box-shadow: 0 0 8px var(--accent-mint); box-shadow: 0 0 10px 2px var(--accent-mint);
} }
.status-indicator.disconnected { .status-indicator.disconnected {
background-color: hsl(0, 80%, 60%); background-color: hsl(0, 85%, 60%);
box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.6);
} }
.widget-title { .widget-title {
font-size: 14px; font-size: 15px;
font-weight: 700; font-weight: 800;
letter-spacing: 0.8px; letter-spacing: 1.5px;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-transform: uppercase; text-transform: uppercase;
color: var(--text-primary);
opacity: 0.95;
} }
.header-right { .header-right {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 4px; gap: 6px;
z-index: 10; /* Assure le clic par-dessus la zone de drag */ z-index: 10;
} }
/* Boutons de contrôle style Windows */ /* Boutons de contrôle Premium */
.win-btn { .win-btn {
background: transparent; background: transparent;
border: none; border: none;
width: 26px; width: 28px;
height: 26px; height: 28px;
border-radius: 6px; border-radius: 8px;
color: var(--text-secondary); color: var(--text-secondary);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
transition: all 0.2s ease; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
} }
.win-btn:hover { .win-btn:hover {
background: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.08);
color: var(--text-primary); color: var(--text-primary);
transform: scale(1.05);
} }
.win-btn.btn-close:hover { .win-btn.btn-close:hover {
background: hsl(0, 75%, 50%); background: hsl(0, 75%, 50%);
color: #fff; color: #fff;
box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
} }
/* --- INDICATEUR DE PROGRESSION --- */ /* --- INDICATEUR DE PROGRESSION HAUT DE GAMME --- */
.progress-container { .progress-container {
width: 100%; width: 100%;
height: 2px; height: 3px;
background: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.04);
overflow: hidden; overflow: hidden;
} }
.progress-bar { .progress-bar {
height: 100%; height: 100%;
background: linear-gradient(90deg, var(--accent-indigo), var(--accent-mint)); background: var(--gradient-primary);
transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 0 8px var(--accent-indigo-glow);
transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
} }
/* --- ZONE DE CORPS --- */ /* --- ZONE DE CORPS --- */
.widget-body { .widget-body {
flex: 1; flex: 1;
padding: 16px; padding: 18px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 16px; gap: 16px;
overflow: hidden; overflow: hidden;
} }
/* Formulaire d'ajout de tâche */ /* Formulaire d'ajout de tâche flottant */
.add-task-form { .add-task-form {
display: flex; display: flex;
gap: 8px; gap: 10px;
background: rgba(0, 0, 0, 0.15); background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.04);
border-radius: 10px; border-radius: 12px;
padding: 4px 6px; padding: 5px 6px;
transition: border-color 0.3s; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
} }
.add-task-form:focus-within { .add-task-form:focus-within {
border-color: rgba(99, 102, 241, 0.4); border-color: rgba(99, 102, 241, 0.5);
box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
} }
.add-task-form input { .add-task-form input {
@@ -180,36 +195,37 @@ body {
border: none; border: none;
outline: none; outline: none;
color: var(--text-primary); color: var(--text-primary);
font-size: 13px; font-size: 13.5px;
padding: 6px; padding: 8px;
font-family: inherit; font-family: inherit;
} }
.add-task-form input::placeholder { .add-task-form input::placeholder {
color: rgba(241, 243, 249, 0.35); color: rgba(241, 243, 249, 0.3);
} }
.btn-add { .btn-add {
background: var(--accent-indigo); background: var(--gradient-primary);
border: none; border: none;
width: 28px; width: 32px;
height: 28px; height: 32px;
border-radius: 8px; border-radius: 10px;
color: #fff; color: #fff;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 4px 12px var(--accent-indigo-glow);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
} }
.btn-add:hover { .btn-add:hover {
transform: scale(1.05); transform: scale(1.08);
box-shadow: 0 0 10px var(--accent-indigo-glow); box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
} }
.btn-add svg { .btn-add svg {
transition: transform 0.3s ease; transition: transform 0.4s ease;
} }
.btn-add:hover svg { .btn-add:hover svg {
@@ -220,13 +236,13 @@ body {
.tasks-list { .tasks-list {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding-right: 2px; padding-right: 4px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 8px; gap: 10px;
} }
/* Personnalisation Scrollbar */ /* Scrollbar futuriste */
.tasks-list::-webkit-scrollbar { .tasks-list::-webkit-scrollbar {
width: 4px; width: 4px;
} }
@@ -236,37 +252,45 @@ body {
} }
.tasks-list::-webkit-scrollbar-thumb { .tasks-list::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.08);
border-radius: 10px; border-radius: 10px;
transition: background 0.3s;
} }
/* --- CARTE DE TÂCHE INDIVIDUELLE --- */ .tasks-list::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.15);
}
/* --- CARTE DE TÂCHE SQUIRCLE GLASS --- */
.task-card { .task-card {
background: var(--bg-card); background: rgba(255, 255, 255, 0.045);
border: var(--border-card); border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 12px; border-radius: 14px;
padding: 12px 14px; padding: 14px 16px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12px; gap: 14px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
position: relative; position: relative;
opacity: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
} }
.task-card:hover { .task-card:hover {
transform: translateY(-2px); transform: translateY(-2px);
background: var(--bg-card-hover); background: rgba(255, 255, 255, 0.08);
border-color: rgba(99, 102, 241, 0.2); border-color: rgba(99, 102, 241, 0.35);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); box-shadow:
0 8px 24px rgba(99, 102, 241, 0.18),
0 4px 12px rgba(0, 0, 0, 0.2);
} }
/* Checkbox personnalisée */ /* Checkbox Squircle interactive */
.custom-checkbox { .custom-checkbox {
width: 18px; width: 20px;
height: 18px; height: 20px;
border-radius: 50%; border-radius: 7px;
border: 1.5px solid rgba(255, 255, 255, 0.35); border: 1.8px solid rgba(255, 255, 255, 0.3);
cursor: pointer; cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -277,13 +301,15 @@ body {
.custom-checkbox:hover { .custom-checkbox:hover {
border-color: var(--accent-indigo); border-color: var(--accent-indigo);
background: rgba(99, 102, 241, 0.08); background: rgba(99, 102, 241, 0.1);
transform: scale(1.05);
} }
/* Checkbox cochée (Terminé) */ /* Checkbox Pop */
.custom-checkbox.checked { .custom-checkbox.checked {
background: linear-gradient(135deg, hsl(165, 80%, 42%), hsl(165, 80%, 32%)); background: var(--gradient-primary);
border-color: transparent; border-color: transparent;
box-shadow: 0 0 10px var(--accent-indigo-glow);
animation: checkboxPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation: checkboxPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
} }
@@ -297,7 +323,7 @@ body {
} }
@keyframes checkboxPop { @keyframes checkboxPop {
50% { transform: scale(1.2); } 50% { transform: scale(1.15); }
100% { transform: scale(1); } 100% { transform: scale(1); }
} }
@@ -306,34 +332,92 @@ body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
min-width: 0; /* Permet le troncage correct du texte */ min-width: 0;
} }
.task-title { .task-title {
font-size: 13px; font-size: 13.5px;
font-weight: 500; font-weight: 550;
color: var(--text-primary); color: var(--text-primary);
transition: color 0.3s; transition: color 0.3s;
position: relative; position: relative;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: inline-block; display: block;
width: 100%;
} }
.task-date { .task-date {
font-size: 9.5px; font-size: 9.5px;
color: var(--text-secondary); color: var(--text-secondary);
margin-top: 3px; margin-top: 4px;
}
/* --- BOUTONS ACTIONS SURVOL (MODIFIER / SUPPRIMER) --- */
.task-actions {
display: flex;
gap: 8px;
margin-right: 6px;
opacity: 0;
transition: opacity 0.25s ease;
}
.task-card:hover .task-actions {
opacity: 1;
}
.btn-task-action {
background: transparent;
border: none;
color: var(--text-secondary);
cursor: pointer;
width: 24px;
height: 24px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.btn-task-action:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
transform: scale(1.08);
}
.btn-task-action.btn-delete:hover {
background: rgba(239, 68, 68, 0.15);
color: hsl(0, 80%, 65%);
box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}
.btn-task-action svg {
pointer-events: none;
}
/* Input d'édition premium */
.task-edit-input {
background: rgba(255, 255, 255, 0.09);
border: 1px solid var(--accent-indigo);
border-radius: 6px;
color: var(--text-primary);
font-size: 13px;
font-family: inherit;
padding: 3px 8px;
width: 100%;
outline: none;
box-shadow: 0 0 10px var(--accent-indigo-glow);
} }
/* --- BADGES DE STATUT --- */ /* --- BADGES DE STATUT --- */
.status-badge { .status-badge {
font-size: 8.5px; font-size: 8.5px;
font-weight: 600; font-weight: 700;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
padding: 3px 7px; padding: 4px 8px;
border-radius: 20px; border-radius: 20px;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -341,26 +425,39 @@ body {
.status-badge.in-progress { .status-badge.in-progress {
background: var(--accent-amber-glow); background: var(--accent-amber-glow);
color: var(--accent-amber); color: var(--accent-amber);
border: 1px solid rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2);
cursor: pointer; cursor: pointer;
transition: all 0.2s;
}
.status-badge.in-progress:hover {
transform: scale(1.05);
background: rgba(245, 158, 11, 0.3);
} }
.status-badge.todo { .status-badge.todo {
background: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.05);
color: var(--text-secondary); color: var(--text-secondary);
border: 1px solid rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
cursor: pointer; cursor: pointer;
transition: all 0.2s;
}
.status-badge.todo:hover {
transform: scale(1.05);
background: rgba(255, 255, 255, 0.12);
} }
.status-badge.done { .status-badge.done {
background: var(--accent-mint-glow); background: var(--accent-mint-glow);
color: var(--accent-mint); color: var(--accent-mint);
border: 1px solid rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2);
} }
/* --- DESIGN DES TÂCHES TERMINÉES (ANIMÉ) --- */ /* --- DESIGN DES TÂCHES TERMINÉES (ANIMÉ) --- */
.task-card.completed { .task-card.completed {
opacity: 0.5; opacity: 0.45;
background: rgba(0, 0, 0, 0.1);
} }
.task-card.completed .task-title { .task-card.completed .task-title {
@@ -377,14 +474,28 @@ body {
background: var(--text-muted); background: var(--text-muted);
transform: scaleX(0); transform: scaleX(0);
transform-origin: left; transform-origin: left;
transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
} }
.task-card.completed .task-title::after { .task-card.completed .task-title::after {
transform: scaleX(1); transform: scaleX(1);
} }
/* État vide */ /* --- ACCORDION EXPANSION STATE --- */
.task-card.expanded {
background: rgba(255, 255, 255, 0.09);
border-color: rgba(99, 102, 241, 0.4);
}
.task-card.expanded .task-title {
white-space: normal;
overflow: visible;
text-overflow: unset;
display: block;
word-break: break-word;
}
/* État vide premium */
.empty-state { .empty-state {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -397,14 +508,15 @@ body {
} }
.empty-state p { .empty-state p {
font-size: 13px; font-size: 13.5px;
font-weight: 500; font-weight: 600;
margin-bottom: 4px; margin-bottom: 6px;
color: var(--text-primary);
} }
.empty-subtext { .empty-subtext {
font-size: 10.5px; font-size: 10.5px;
opacity: 0.7; opacity: 0.65;
} }
/* --- PANNEAU DE PARAMÈTRES (BOTTOM SLIDE) --- */ /* --- PANNEAU DE PARAMÈTRES (BOTTOM SLIDE) --- */
@@ -413,18 +525,20 @@ body {
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 380px; height: 390px;
background: rgba(15, 18, 28, 0.95); background: rgba(13, 16, 28, 0.96);
backdrop-filter: blur(40px);
-webkit-backdrop-filter: blur(40px);
border-top: var(--border-widget); border-top: var(--border-widget);
border-radius: 16px 16px 0 0; border-radius: 20px 20px 0 0;
padding: 20px; padding: 22px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 16px; gap: 16px;
transform: translateY(100%); transform: translateY(100%);
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 100; z-index: 100;
box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
} }
.settings-panel.open { .settings-panel.open {
@@ -439,9 +553,12 @@ body {
.settings-header h2 { .settings-header h2 {
font-size: 14px; font-size: 14px;
font-weight: 700; font-weight: 800;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.8px;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
} }
.btn-icon-close { .btn-icon-close {
@@ -449,8 +566,8 @@ body {
border: none; border: none;
color: var(--text-secondary); color: var(--text-secondary);
cursor: pointer; cursor: pointer;
width: 24px; width: 26px;
height: 24px; height: 26px;
border-radius: 50%; border-radius: 50%;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -477,25 +594,55 @@ body {
} }
.setting-group label { .setting-group label {
font-size: 11px; font-size: 11.5px;
font-weight: 500; font-weight: 600;
color: var(--text-secondary); color: var(--text-secondary);
} }
.setting-group input { .setting-group input {
background: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px; border-radius: 10px;
padding: 8px 10px; padding: 10px 12px;
color: var(--text-primary); color: var(--text-primary);
font-size: 12px; font-size: 12.5px;
outline: none; outline: none;
font-family: inherit; font-family: inherit;
transition: border-color 0.3s; transition: all 0.3s;
} }
.setting-group input:focus { .setting-group input:focus {
border-color: var(--accent-indigo); border-color: var(--accent-indigo);
box-shadow: 0 0 8px var(--accent-indigo-glow);
}
/* Transparence Slider */
.slider-opacity {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 6px;
border-radius: 5px;
background: rgba(255, 255, 255, 0.1);
outline: none;
transition: background 0.3s;
margin: 6px 0;
}
.slider-opacity::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--accent-indigo);
cursor: pointer;
box-shadow: 0 0 10px var(--accent-indigo-glow);
transition: transform 0.1s;
}
.slider-opacity::-webkit-slider-thumb:hover {
transform: scale(1.2);
} }
/* Switch Toggles */ /* Switch Toggles */
@@ -515,8 +662,8 @@ body {
} }
.switch-label { .switch-label {
font-size: 12px; font-size: 12.5px;
font-weight: 500; font-weight: 550;
color: var(--text-primary); color: var(--text-primary);
} }
@@ -525,8 +672,8 @@ body {
} }
.switch-slider { .switch-slider {
width: 34px; width: 36px;
height: 18px; height: 20px;
background-color: rgba(255, 255, 255, 0.15); background-color: rgba(255, 255, 255, 0.15);
border-radius: 20px; border-radius: 20px;
position: relative; position: relative;
@@ -536,8 +683,8 @@ body {
.switch-slider::before { .switch-slider::before {
content: ""; content: "";
position: absolute; position: absolute;
width: 12px; width: 14px;
height: 12px; height: 14px;
left: 3px; left: 3px;
bottom: 3px; bottom: 3px;
background-color: white; background-color: white;
@@ -547,27 +694,122 @@ body {
.switch-container input:checked + .switch-slider { .switch-container input:checked + .switch-slider {
background-color: var(--accent-indigo); background-color: var(--accent-indigo);
box-shadow: 0 0 8px var(--accent-indigo-glow);
} }
.switch-container input:checked + .switch-slider::before { .switch-container input:checked + .switch-slider::before {
transform: translateX(16px); transform: translateX(16px);
} }
/* Bouton enregistrer */ /* Bouton enregistrer premium */
.btn-save { .btn-save {
background: var(--accent-indigo); background: var(--gradient-primary);
color: white; color: white;
border: none; border: none;
border-radius: 8px; border-radius: 10px;
padding: 10px; padding: 12px;
font-size: 13px; font-size: 13.5px;
font-weight: 600; font-weight: 700;
cursor: pointer; cursor: pointer;
margin-top: 8px; margin-top: 8px;
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 4px 12px var(--accent-indigo-glow);
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
} }
.btn-save:hover { .btn-save:hover {
background: hsl(250, 85%, 58%); transform: scale(1.02);
box-shadow: 0 0 10px var(--accent-indigo-glow); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
/* --- GLASSMORPHIC CONFIRMATION MODAL --- */
.confirm-modal-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.55);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.confirm-modal-overlay.open {
opacity: 1;
pointer-events: auto;
}
.confirm-modal-box {
width: 290px;
background: rgba(14, 18, 30, 0.96);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 22px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
transform: scale(0.9);
transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
text-align: center;
}
.confirm-modal-overlay.open .confirm-modal-box {
transform: scale(1);
}
.confirm-modal-box h3 {
font-size: 16px;
font-weight: 800;
color: var(--text-primary);
margin-bottom: 10px;
}
.confirm-modal-box p {
font-size: 12px;
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 22px;
}
.confirm-modal-actions {
display: flex;
gap: 12px;
justify-content: center;
}
.confirm-modal-actions button {
padding: 10px 18px;
font-size: 12.5px;
font-weight: 700;
border-radius: 10px;
border: none;
cursor: pointer;
transition: all 0.2s;
flex: 1;
}
.btn-confirm-cancel {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-confirm-cancel:hover {
background: rgba(255, 255, 255, 0.15);
}
.btn-confirm-delete {
background: hsl(0, 75%, 50%);
color: white;
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.btn-confirm-delete:hover {
background: hsl(0, 75%, 45%);
box-shadow: 0 4px 18px rgba(239, 68, 68, 0.5);
transform: scale(1.02);
} }