/* ==================== SESSION MANAGER STYLES ==================== */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

/* Session Modal */
.session-modal {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: #1a1a1a;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 2px solid #f0f0f0;
  justify-content: flex-end;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group select,
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: white;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

#pomodoroSettings {
  background: #f8f9ff;
  padding: 16px;
  border-radius: 12px;
  margin-top: 12px;
  border: 2px solid #e0e7ff;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: #666;
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Session Summary */
.session-summary {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  margin-top: 16px;
}

.session-summary p {
  margin: 8px 0;
  color: #666;
}

.session-summary strong {
  color: #667eea;
  font-size: 18px;
}

/* ==================== ACTIVE SESSION TIMER ==================== */

.active-session-timer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  min-width: 350px;
  animation: slideInRight 0.4s ease;
  border: 2px solid #667eea;
}

.timer-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timer-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.timer-icon {
  font-size: 32px;
  line-height: 1;
}

.timer-details {
  flex: 1;
}

.timer-program {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 15px;
  margin-bottom: 4px;
}

.timer-topic {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.timer-display {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #667eea15, #764ba215);
  border-radius: 12px;
}

.timer-time {
  font-size: 36px;
  font-weight: 700;
  color: #667eea;
  font-family: 'Monaco', 'Courier New', monospace;
  letter-spacing: 2px;
}

.timer-mode {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.timer-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-timer-expand,
.btn-timer-pause,
.btn-timer-end {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-timer-expand:hover {
  background: #f0f0f0;
  border-color: #667eea;
  transform: scale(1.05);
}

.btn-timer-pause:hover {
  background: #fff3e0;
  border-color: #ff9800;
  transform: scale(1.05);
}

.btn-timer-end:hover {
  background: #ffebee;
  border-color: #f44336;
  transform: scale(1.05);
}

/* Break Mode */
.timer-content.break-mode {
  background: linear-gradient(135deg, #fef5e7, #fff9e6);
}

.timer-content.break-mode .timer-display {
  background: linear-gradient(135deg, #ff980015, #f4433615);
}

.timer-content.break-mode .timer-time {
  color: #ff9800;
}

/* ==================== BREAK MODAL ==================== */

.break-modal {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 48px 32px;
  text-align: center;
  max-width: 450px;
  animation: bounceIn 0.5s ease;
}

.break-icon {
  font-size: 72px;
  margin-bottom: 16px;
  animation: pulse 2s ease infinite;
}

.break-modal h2 {
  font-size: 28px;
  color: #1a1a1a;
  margin: 0 0 16px;
}

.break-modal p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin: 8px 0;
}

.break-time {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #ff9800 !important;
  margin: 24px 0 !important;
}

.break-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.break-actions button {
  flex: 1;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .active-session-timer {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: unset;
    max-width: unset;
  }

  .timer-time {
    font-size: 28px;
  }

  .session-modal,
  .break-modal {
    width: 95%;
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .break-icon {
    font-size: 56px;
  }

  .break-modal h2 {
    font-size: 22px;
  }
}

/* ==================== DARK MODE (opsiyonel) ==================== */

@media (prefers-color-scheme: dark) {
  .session-modal,
  .break-modal {
    background: #1e1e1e;
    color: #e0e0e0;
  }

  .modal-header {
    border-bottom-color: #333;
  }

  .modal-header h2 {
    color: #e0e0e0;
  }

  .modal-footer {
    border-top-color: #333;
  }

  .form-group select,
  .form-group input,
  .form-group textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
  }

  .active-session-timer {
    background: #1e1e1e;
    color: #e0e0e0;
  }

  .btn-timer-expand,
  .btn-timer-pause,
  .btn-timer-end {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
  }
}
