
/* --------------------------------------
		MAIN STYLE
-----------------------------------------*/
/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

/* APP CONTAINER */
#app {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f8fa;
}

/* HEADER */
.app-header {
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 10;
}

.header-left .app-logo {
  font-weight: 600;
  font-size: 18px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.header-btn:hover {
  background: #f0f0f0;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

/* PAGE CONTAINER */
#page-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding: 24px;
}

/* MODAL LAYER */
#modal-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

#modal-layer > * {
  pointer-events: auto; /* modal content is clickable */
}

/* BLUR OVERLAY */
#overlay-blur {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(0px);
  background: rgba(0,0,0,0);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 40;
}

/* ACTIVE BLUR STATE */
#overlay-blur.active {
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.25);
  opacity: 1;
  pointer-events: auto;
}

/* AUTH WRAPPER */
.auth-wrapper {
  width: 100%;
  height: calc(100vh - 56px); /* subtract header height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* CARD */
.auth-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: 0.3s ease;
}

.auth-card.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  position: absolute;
}

/* TITLE */
.auth-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

/* FIELDS */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  color: #555;
}

.auth-field input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s ease;
}

.auth-field input:focus {
  border-color: #888;
  outline: none;
}

/* BUTTON */
.auth-btn {
  width: 100%;
  padding: 12px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}

.auth-btn:hover {
  background: #000;
}

/* SWITCH */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.auth-link {
  color: #111;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  transition: 0.2s ease;
}

.auth-link:hover {
  opacity: 0.7;
}

/* -------------------------------------
	NAVIGATION PLACEHOLDER STYLING 
----------------------------------------*/

.placeholder {
  width: 100%;
  height: 300px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #999;
}

/*--------------------------------
		MODAL STYLE
---------------------------------*/

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.modal-btn.cancel {
  background: #eee;
}

.modal-btn.create {
  background: #000;
  color: #fff;
}


/*--------------------------------
		PROJECT HUB STYLE
---------------------------------*/

/* WRAPPER */
.projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.projects-header h1 {
  font-size: 24px;
  font-weight: 600;
}

.new-project-btn {
  padding: 10px 16px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.new-project-btn:hover {
  background: #000;
}

/* GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* PROJECT CARD */
.project-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* TOP SECTION */
.project-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-progress-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #111;
  border-radius: 4px;
}

/* PREVIEW PANEL */
.project-preview {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease forwards;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-bar {
  width: 120px;
  height: 6px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.preview-fill {
  height: 100%;
  background: #111;
}

.open-project-btn {
  margin-top: 8px;
  padding: 10px 16px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.open-project-btn:hover {
  background: #000;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------
			KANBAN UI STYLE
---------------------------------------------*/

/* WRAPPER */
.kanban-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER */
.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-title {
  font-size: 24px;
  font-weight: 600;
}

.kanban-actions {
  display: flex;
  gap: 12px;
}

.kanban-btn {
  padding: 8px 14px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.kanban-btn:hover {
  background: #000;
}

/* BOARD */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  height: calc(100vh - 160px);
  overflow-x: auto;
  padding-bottom: 20px;
}

/* COLUMN */
.kanban-column {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-column-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.task-count {
  background: #ddd;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}

/* ADD TASK */
.kanban-add-task {
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: 0.2s ease;
}

.kanban-add-task:hover {
  background: #eee;
}

/* TASK CARD */
.task-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 0.2s ease;
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* TYPE PILL */
.task-type-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.task-type-pill.design { background: #4a6cff; }
.task-type-pill.bug { background: #ff4a4a; }
.task-type-pill.content { background: #ff9f1c; }
.task-type-pill.research { background: #2ec4b6; }

/* TITLE */
.task-title {
  font-size: 15px;
  font-weight: 500;
}

/* META */
.task-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

/* ---------------------------------------------
			PLACE HOLDER TASK BUBBLE 
------------------------------------------------*/

.task-bubble-placeholder {
  width: 400px;
  height: 300px;
  background: #fff;
  border-radius: 16px;
  margin: 100px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/*--------------------------------------------------
			TASK BUBBLE CONTAINER
----------------------------------------------------*/

/* TASK BUBBLE CONTAINER */
.task-bubble {
  width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  margin: 60px auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  animation: bubbleIn 0.25s ease;
  position: relative;
}

/* ANIMATION */
@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* HEADER */
.task-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-bubble-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.2s ease;
}

.task-bubble-close:hover {
  opacity: 1;
}

/* TYPE PILL */
.task-type-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.task-type-pill.design { background: #4a6cff; }
.task-type-pill.bug { background: #ff4a4a; }
.task-type-pill.content { background: #ff9f1c; }
.task-type-pill.research { background: #2ec4b6; }

/* TITLE INPUT */
.task-title-input {
  width: 100%;
  font-size: 20px;
  font-weight: 600;
  margin-top: 20px;
  border: none;
  outline: none;
}

/* DESCRIPTION */
.task-desc-input {
  width: 100%;
  height: 80px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  resize: none;
  font-size: 14px;
}

/* ROW */
.task-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.task-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-field label {
  font-size: 13px;
  color: #555;
}

.task-field select,
.task-field input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* SECTIONS */
.task-section {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
}

/* TIME TRACKER */
.time-tracker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  padding: 12px;
  border-radius: 12px;
}

.time-display {
  font-size: 16px;
  font-weight: 500;
}

.time-btn {
  padding: 8px 14px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* COMMENTS */
.comments-box {
  background: #f7f7f7;
  padding: 12px;
  border-radius: 12px;
  min-height: 60px;
}

.comment-input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  resize: none;
}

/* ACTIVITY */
.activity-list {
  background: #f7f7f7;
  padding: 12px;
  border-radius: 12px;
}

.activity-item {
  font-size: 13px;
  padding: 4px 0;
  color: #555;
}

/*-----------------------------------
			CALENDAR UI
--------------------------------------*/

/* WRAPPER */
.calendar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-title {
  font-size: 22px;
  font-weight: 600;
}

.cal-nav-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.cal-nav-btn:hover {
  background: #eee;
}

.calendar-right {
  display: flex;
  gap: 8px;
}

.cal-view-btn {
  padding: 8px 14px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.cal-view-btn.active {
  background: #111;
  color: #fff;
}

/* MONTH VIEW */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  padding-bottom: 6px;
}

.cal-day {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  min-height: 90px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.cal-day:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cal-date {
  font-size: 14px;
  font-weight: 600;
}

.cal-task-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cal-task-dot.design { background: #4a6cff; }
.cal-task-dot.bug { background: #ff4a4a; }
.cal-task-dot.content { background: #ff9f1c; }

/* WEEK VIEW */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  position: relative;
  min-height: 120px;
}

.week-day {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.week-task-bar {
  position: absolute;
  top: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.week-task-bar.design { background: #4a6cff; }
.week-task-bar.bug { background: #ff4a4a; }

/* DAY VIEW */
.day-column {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.day-task {
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  margin-top: 10px;
}

.day-task.design { background: #4a6cff; }
.day-task.bug { background: #ff4a4a; }

/* VIEW SWITCHING */
.calendar-view {
  display: none;
}

.calendar-view.active {
  display: block;
}

/*-------------------------------------------
-------------MOTION GLOBAL------------------
---------------------------------------------*/

/* GLOBAL easing system */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.32, 0, 0.67, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --fast: 150ms;
  --normal: 220ms;
  --slow: 320ms;
}

/* DEPTH SYSTEM shadows + elevation */

:root {
  --shadow-0: none;
  --shadow-1: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-3: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-4: 0 12px 40px rgba(0,0,0,0.18);
}

/* BLUR SYSTEM overlays + modals */

#overlay-blur {
  backdrop-filter: blur(0px);
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: backdrop-filter var(--normal) var(--ease-out),
              background var(--normal) var(--ease-out),
              opacity var(--normal) var(--ease-out);
}

#overlay-blur.active {
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,0.25);
  opacity: 1;
}

/* MODAL MOTION task bubble, settings, etc */

.task-bubble {
  animation: bubbleIn var(--normal) var(--ease-out);
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ^^ clasin animation ^^ */
.task-bubble.closing {
  animation: bubbleOut var(--normal) var(--ease-in);
}

@keyframes bubbleOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
}

/* PROJECT CARD EXPANSION MOTION */

.project-card {
  transition: transform var(--normal) var(--ease-out),
              box-shadow var(--normal) var(--ease-out);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.project-preview {
  animation: previewSlide var(--normal) var(--ease-out);
}

@keyframes previewSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* KANBAN TASK MOTION */

/*hover lift*/
.task-card {
  transition: transform var(--fast) var(--ease-out),
              box-shadow var(--fast) var(--ease-out);
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

/*grag-ready state (ui only)*/

.task-card.dragging {
  opacity: 0.8;
  transform: rotate(1deg) scale(1.02);
  box-shadow: var(--shadow-3);
}

/* CALENDAR MOTION */

/*day hover*/
.cal-day {
  transition: transform var(--fast) var(--ease-out),
              box-shadow var(--fast) var(--ease-out);
}

.cal-day:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

/*task bar slide-in*/
.week-task-bar {
  animation: barIn var(--normal) var(--ease-out);
}

@keyframes barIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MOTION INTERATION */

/*buttons*/
button {
  transition: background var(--fast) var(--ease-out),
              transform var(--fast) var(--ease-out);
}

button:active {
  transform: scale(0.96);
}

/*inputs*/
input, textarea, select {
  transition: border-color var(--fast) var(--ease-out),
              box-shadow var(--fast) var(--ease-out);
}

input:focus, textarea:focus, select:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* PAGE TANSITIONS KANBAN <-> CALENDAR */

.page-enter {
  animation: pageIn var(--normal) var(--ease-out);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

