@charset "UTF-8";

/* ---------------------------------------------------------
	CSS Document modal
--------------------------------------------------------- */

    :root {
      
      --primary: #3b82f6;
      --primary-dark: #2563eb;
      --primary-soft: #eff6ff;
      
      --success: #10b981;
      --success-dark: #059669;
      --success-soft: #d1fae5;
      
      --danger: #ef4444;
      --danger-dark: #dc2626;
      --danger-soft: #fee2e2;
      
      --text-main: #1f2937;
      --text-sub: #6b7280;
      --border: #e5e7eb;
      --bg-page: #f3f4f6;
    }

    .modal .btn {
      border: 1px solid transparent;
      border-radius: 12px;
      padding: 10px 16px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    .modal .btn:active {
      transform: scale(0.98);
    }

    .modal .btn-primary,
    .modal .btn-success,
    .modal .btn-danger {
      color: white;
    }
    .modal .btn-primary { background: var(--primary); }
    .modal .btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

    .modal .btn-success { background: var(--success); }
    .modal .btn-success:hover { background: var(--success-dark); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

    .modal .btn-danger { background: var(--danger); }
    .modal .btn-danger:hover { background: var(--danger-dark); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }

    .modal .btn-outline {
      background: white;
      border: 1px solid var(--border);
      color: var(--text-main);
    }
    .modal .btn-outline:hover {
      background: #f9fafb;
      border-color: #d1d5db;
    }

/* ---------------------------------------------------------
	CSS Document modal
--------------------------------------------------------- */

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(17, 24, 39, 0.4); 
      backdrop-filter: blur(4px); 
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      opacity: 0;
      transition: opacity 0.2s ease-in-out;
    }
    .modal-backdrop.active {
      display: flex;
      opacity: 1;
    }

    .modal {
      width: 100%;
      max-width: 520px;
      background: #ffffff;
      border-radius: 20px;
      padding: 24px;
      box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
      position: relative;
      transform: scale(0.95) translateY(10px);
      transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .modal-backdrop.active .modal {
      transform: scale(1) translateY(0);
    }

	@media only screen and (max-width: 640px) {
		.modal {
			margin: 0 5vw;
		}
	}

    .btn-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 28px;
      height: 28px;
      background: transparent;
      border: none;
      border-radius: 50%;
      color: #9ca3af;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0; 
      transition: background 0.2s;
    }
    .btn-close::before {
      content: "\2715";
      font-size: 16px;
      font-weight: bold;
    }
    .btn-close:hover {
      background: #f3f4f6;
      color: #4b5563;
    }

    
    .modal-header {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 16px;
    }

    
    .modal-icon {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }
    
    .icon-success {
      background: var(--success-soft);
      color: var(--success-dark);
      
      font-weight: bold;
    }
    .icon-error {
      background: var(--danger-soft);
      color: var(--danger-dark);
      font-weight: 800;
    }
    .icon-info {
      background: var(--primary-soft);
      color: var(--primary-dark);
    }

    .modal-title {
      font-size: 16px;
      font-weight: 700;
      color: #111827;
      margin-bottom: 4px;
      line-height: 1.4;
      padding-top: 2px;
    }
	@media only screen and (max-width: 640px) {
		.modal-title {
			margin-right: 5vw;
		}
	}

    .modal-sub {
      font-size: 13px;
      color: #6b7280;
      line-height: 1.4;
    }

    .divider {
      height: 1px;
      background: #f3f4f6;
      margin: 0 -24px 16px; 
    }

    .modal-body {
      font-size: 14px;
      color: #374151;
      line-height: 1.6;
      margin-bottom: 24px;
    }
    .modal-body strong {
      color: #111827;
      font-weight: 600;
    }

    .modal-body ul {
      background: #f9fafb;
      padding: 12px 16px;
      border-radius: 12px;
      list-style: none;
      margin-top: 12px;
    }
    .modal-body ul li {
      margin-bottom: 4px;
      font-size: 13px;
      color: #4b5563;
      padding-left: 0;
    }
    .modal-body ul li:last-child { margin-bottom: 0; }

    
    .hint {
      margin-top: 12px;
      font-size: 12px;
      color: #9ca3af;
      padding-left: 2px;
    }

    
    .modal-body code {
      display: block;
      font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
      font-size: 12px;
      background: #1e293b; 
      color: #e2e8f0;
      padding: 12px;
      border-radius: 8px;
      margin: 8px 0;
      word-break: break-all;
    }
    
    
    .code-row {
      display: flex;
      align-items: stretch;
      gap: 0;
      margin-top: 8px;
      background: #f3f4f6;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid #e5e7eb;
    }
    .code-row code {
      background: transparent;
      color: #1f2937;
      border: none;
      margin: 0;
      flex: 1;
      display: flex;
      align-items: center;
    }
    .btn-copy {
      background: #ffffff;
      border: none;
      border-left: 1px solid #e5e7eb;
      padding: 0 16px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      color: var(--primary-dark);
      transition: background 0.2s;
    }
    .btn-copy:hover {
      background: #eff6ff;
    }

    
    .modal-footer {
      display: flex;
      justify-content: flex-end;
      gap: 10px; 
    }
    
    
    .btn-modal-action {
      border-radius: 10px;
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.2s ease;
      border: 1px solid transparent;
    }
    .btn-modal-action:active {
      transform: scale(0.98);
    }

    
    .btn-modal-secondary {
      background: #ffffff;
      border-color: #e5e7eb;
      color: #374151;
    }
    .btn-modal-secondary:hover {
      background: #f9fafb;
      border-color: #d1d5db;
    }

    
    .btn-modal-primary {
      background: var(--primary);
      color: #ffffff;
      box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    }
    .btn-modal-primary:hover {
      background: var(--primary-dark);
      box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    }
    
    
    .modal-footer .btn {
      border-radius: 8px;
      padding: 10px 18px;
      font-size: 13px;
    }
