/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --border-color: black;
    --shadow-color: black;
    --bg-page: white;
    --bg-container: white;
    --bg-header: #e9e9e9;
    --button-bg: #e0e0e0;
    --button-bg-hover: #d0d0d0;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-accent: #007bff;
    --bg-neutral-light: #f0f0f0;
    --bg-neutral-dark: #e0e0e0;
    --button-text: white;
}

body {
    padding: 2rem;
    font-family: "Trebuchet MS", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg-page);
    color: #333;
    overflow-x: hidden;
    overflow-y: auto;
}

/* === KANBAN BOARD STYLES === */
.app-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    background-color: var(--bg-container);
    box-shadow: 10px 10px 0 var(--shadow-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--bg-header);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.title-section {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.9rem;
    color: #666;
}

.data-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-block;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    background-color: var(--button-bg);
    color: black;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    border-radius: 6px;
    font-family: inherit;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--button-bg-hover);
    transform: translateY(-2px);
}

.pomodoro-timer {
    border: 1px solid var(--border-color);
    background: var(--bg-container);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    min-width: 110px;
    text-align: center;
}

.timer-controls {
    display: flex;
    gap: 8px;
}

.timer-btn {
    padding: 0.5rem 1rem;
}

.timer-btn.active {
    background-color: var(--color-success);
    color: white;
}

.main-content-wrapper {
    padding: 2rem;
    background-color: var(--bg-page);
    flex: 1;
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.kanban-column {
    background: var(--bg-container);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 0 var(--shadow-color);
    flex: 1 1 100%;
    min-width: 280px;
}

.column-header {
    background: var(--bg-header);
    color: #000;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
    position: relative;
}

.column-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.add-task-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--button-bg);
    color: #000;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 28px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-task-btn:hover {
    background-color: var(--button-bg-hover);
    transform: translateY(-50%) scale(1.1);
}

.tasks-container {
    padding: 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    border-radius: 0 0 6px 6px;
    transition: background-color 0.2s;
}

.task-card {
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    cursor: grab;
    transition: all 0.2s;
    touch-action: none;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}

.task-card.dragging {
    opacity: 0.6;
    transform: rotate(2deg);
}

.task-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.delete-task {
    background: transparent;
    color: var(--color-error);
    border: 1px solid var(--color-error);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}

.delete-task:hover {
    background: var(--color-error);
    color: white;
}

.drag-over {
    background: #e3f2fd !important;
}

.task-input, .import-textarea {
    background: var(--bg-container);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.task-input:focus, .import-textarea:focus {
    outline: 2px solid var(--color-accent);
    border-color: var(--color-accent);
}

/* === MODAL & NOTIFICATION STYLES === */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.18);
    align-items: center;
    justify-content: center;
}
.modal[style*='display: block'] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-container);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 10px 10px 0 var(--shadow-color);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-btn.cancel {
    background: transparent;
    border-color: #777;
}

.modal-btn.cancel:hover {
    background: #777;
    color: white;
}

.import-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.import-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.import-label {
    font-weight: 700;
    font-size: 0.9rem;
}

.import-textarea {
    min-height: 120px;
    resize: vertical;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    text-align: center;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-success);
    color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-weight: 700;
    box-shadow: 5px 5px 0 var(--shadow-color);
    z-index: 1001;
    transform: translateX(calc(100% + 30px));
    transition: transform 0.3s ease-in-out;
    max-width: calc(100% - 40px);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: var(--color-error);
}

/* === HOMEPAGE STYLES === */
/* Navigation Bar Styles */
.navigation {
  width: 100%;
  background: #222;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  font-family: inherit;
  margin-bottom: 2rem;
}
.navigation a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.navigation a:hover {
  color: #ffb300;
}

/* Main Content Container */
.container {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}
h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}
h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Blog List */
.container ul {
  padding-left: 1.2em;
  margin-bottom: 1.5em;
}
.container li {
  margin-bottom: 0.5em;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1rem 0.5rem;
    font-size: 1rem;
  }
  .navigation {
    font-size: 1rem;
    padding: 0.7rem 0;
  }
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
}

/* === COOKIE COMPONENTS === */
#cookie-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    display: none;
    z-index: 1000;
    font-size: 14px;
    text-align: center;
}

#cookie-settings {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
}

#cookie-settings::after {
    content: "🍪";
    font-size: 24px;
}

#cookie-settings:hover {
    transform: scale(1.05);
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

button {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

#accept-cookies {
    background: #28a745;
    color: white;
}

#reject-cookies {
    background: #dc3545;
    color: white;
}

/* === ACCESSIBILITY & RESPONSIVE === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .btn:hover,
    .add-task-btn:hover,
    .task-card:hover,
    .navigation-button:hover {
        transform: none !important;
    }
}

@media (max-width: 960px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .data-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    .app-container {
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-top: 2px solid var(--border-color);
        border-bottom: 2px solid var(--border-color);
        min-height: 100vh;
    }
    .container {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    .header {
        padding: 1.5rem;
    }
    .title {
        font-size: 2rem;
    }
    .main-content-wrapper {
        padding: 1.5rem;
    }
    .modal-content {
        width: calc(100% - 2rem);
        padding: 1.5rem;
    }
    .notification {
        left: 50%;
        right: auto;
        transform: translate(-50%, calc(-100% - 30px));
    }
    .notification.show {
        transform: translate(-50%, 0);
    }
}

@media (min-width: 769px) {
    .kanban-board {
        gap: 2rem;
    }
    .kanban-column {
        flex: 1 1 320px;
    }
}
