:root {
   --primary: #2563eb;
   --primary-dark: #1d4ed8;
   --secondary: #10b981;
   --danger: #ef4444;
   --warning: #f59e0b;
   --white: #ffffff;
   --bg-card: #ffffff;
   --bg-light: #f8fafc;
   --text-primary: #1e293b;
   --text-secondary: #64748b;
   --border-color: #e2e8f0;
   --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   --radius: 8px;
}

.hero-redirect {
   padding: 4rem 0;
   text-align: center;
   border-bottom: 1px solid var(--border-color);
   box-shadow: var(--shadow);
   background: linear-gradient(135deg, #ffffff, #fcfdff);
}

.hero-redirect h1 {
   font-size: 2.2rem;
   margin-bottom: 1.5rem;
   color: var(--text-primary);
}

.hero-redirect p {
   font-size: 1.1rem;
   max-width: 800px;
   margin: 0 auto 2rem;
   color: var(--text-secondary);
}

.generator {
   background: var(--white);
   border-radius: var(--radius);
   padding: 2.5rem;
   margin: 3rem 0;
   box-shadow: var(--shadow);
}

.generator h2 {
   font-size: 2rem;
   margin-bottom: 1.5rem;
   color: var(--primary);
   text-align: center;
}

.tips {
   background: #eff6ff;
   border-left: 4px solid var(--primary);
   padding: 1rem 1.5rem;
   margin: 2rem 0;
   border-radius: 0 var(--radius) var(--radius) 0;
}

.tips h3 {
   color: var(--primary);
   margin-bottom: 0.5rem;
}

.tips ul {
   padding-left: 1.5rem;
}

.tips li {
   margin-bottom: 0.5rem;
}

.redirect-form .form-group {
   margin-bottom: 1.5rem;
}

.redirect-form label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--text-primary);
}

.form-hint {
   display: block;
   margin-top: 0.35rem;
   font-size: 0.875rem;
   color: var(--text-secondary);
}

.form-control {
   width: 100%;
   padding: 0.75rem 1rem;
   border: 1px solid #d1d5db;
   border-radius: var(--radius);
   font-size: 1rem;
   transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
   outline: none;
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-group {
   display: flex;
   gap: 10px;
   margin-top: 1.5rem;
   flex-wrap: wrap;
}

.btn {
   display: inline-block;
   padding: 0.75rem 1.5rem;
   background: var(--primary);
   color: var(--white);
   border: none;
   border-radius: var(--radius);
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: background-color 0.3s, transform 0.2s;
   text-decoration: none;
}

.btn:hover {
   background: var(--primary-dark);
   transform: translateY(-2px);
}

.btn:disabled {
   cursor: not-allowed;
   opacity: 0.7;
}

.btn-secondary {
   background: var(--secondary);
}

.btn-secondary:hover {
   background: #059669;
}

.btn-danger {
   background: var(--danger);
}

.btn-danger:hover {
   background: #dc2626;
}

.error-message.redirect-error {
   margin-top: 1.5rem;
   padding: 1.25rem;
   background: #fef2f2;
   border: 1px solid #fecaca;
   border-radius: var(--radius);
   color: var(--danger);
}

.loading.redirect-loading {
   text-align: center;
   padding: 2rem;
}

.spinner {
   display: inline-block;
   width: 40px;
   height: 40px;
   border: 3px solid rgba(37, 99, 235, 0.2);
   border-radius: 50%;
   border-top-color: var(--primary);
   animation: spin 0.8s linear infinite;
   margin-bottom: 1rem;
}

@keyframes spin {
   to { transform: rotate(360deg); }
}

.feedback-container.redirect-results {
   margin-top: 2rem;
}

.redirect-summary {
   margin-bottom: 1.5rem;
   padding: 1rem;
   background: var(--bg-light);
   border-radius: var(--radius);
   border: 1px solid var(--border-color);
}

.redirect-summary p {
   margin: 0.5rem 0;
   color: var(--text-primary);
}

.redirect-summary a {
   color: var(--primary);
   word-break: break-all;
}

.redirect-warning {
   padding: 1rem 1.25rem;
   background: #fffbeb;
   border: 1px solid #fcd34d;
   border-radius: var(--radius);
   color: #92400e;
   margin-bottom: 1.5rem;
}

.redirect-warning i {
   margin-right: 0.5rem;
}

.result-section {
   margin-bottom: 1.5rem;
}

.result-section h4 {
   margin-bottom: 0.75rem;
   color: var(--primary);
}

.result-section h4 i {
   margin-right: 0.5rem;
}

.table-wrap {
   overflow-x: auto;
   border: 1px solid var(--border-color);
   border-radius: var(--radius);
}

.redirect-table {
   width: 100%;
   border-collapse: collapse;
   font-size: 0.95rem;
}

.redirect-table th,
.redirect-table td {
   padding: 0.75rem 1rem;
   text-align: left;
   border-bottom: 1px solid var(--border-color);
}

.redirect-table th {
   background: var(--bg-light);
   font-weight: 600;
   color: var(--text-primary);
}

.redirect-table tbody tr:last-child td {
   border-bottom: none;
}

.redirect-table .url-cell {
   max-width: 320px;
}

.redirect-table .url-cell a {
   color: var(--primary);
   word-break: break-all;
}

.status-badge {
   display: inline-block;
   padding: 0.25rem 0.6rem;
   border-radius: 4px;
   font-weight: 600;
   font-size: 0.875rem;
}

.status-badge.status-ok {
   background: #d1fae5;
   color: #065f46;
}

.status-badge.status-redirect {
   background: #dbeafe;
   color: #1e40af;
}

.status-badge.status-broken {
   background: #fee2e2;
   color: #991b1b;
}

.final-url-card {
   margin-top: 1.5rem;
   padding: 1.25rem;
   background: var(--bg-light);
   border-radius: var(--radius);
   border: 1px solid var(--border-color);
}

.final-url-card h4 {
   margin-bottom: 0.75rem;
   color: var(--primary);
}

.final-url-card h4 i {
   margin-right: 0.5rem;
}

.final-url {
   margin-bottom: 0.5rem;
   word-break: break-all;
}

.final-url a {
   color: var(--primary);
}

.final-status {
   font-size: 0.95rem;
   color: var(--text-secondary);
}

.features {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 2rem;
   margin: 3rem 0;
}

.feature-card {
   background: var(--white);
   border-radius: var(--radius);
   padding: 2rem;
   box-shadow: var(--shadow);
   transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-card i {
   font-size: 2.5rem;
   color: var(--primary);
   margin-bottom: 1rem;
}

.feature-card h3 {
   font-size: 1.4rem;
   margin-bottom: 1rem;
   color: var(--text-primary);
}

.info-section {
   width: 100%;
   padding: 3rem 0;
}

.section-title {
   font-size: 2rem;
   font-weight: 700;
   margin-bottom: 2rem;
   color: var(--text-primary);
   text-align: center;
}

.how-to-steps {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 2rem;
   margin-top: 2rem;
}

.step-card {
   background: var(--white);
   border-radius: var(--radius);
   padding: 1.5rem;
   box-shadow: var(--shadow);
   position: relative;
}

.step-number {
   position: absolute;
   top: -15px;
   left: -15px;
   width: 40px;
   height: 40px;
   background: var(--primary);
   color: var(--white);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   font-size: 1.2rem;
}

.step-card h3 {
   margin: 0.5rem 0 1rem;
   color: var(--text-primary);
}

.faq-container-rbt {
   margin-top: 2rem;
}

.faq-container-rbt .faq-item {
   background: var(--white);
   border-radius: var(--radius);
   margin-bottom: 1rem;
   box-shadow: var(--shadow);
   overflow: hidden;
}

.faq-container-rbt .faq-question {
   padding: 1rem 1.5rem;
   cursor: pointer;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-weight: 600;
   color: var(--text-primary);
}

.faq-container-rbt .faq-question i {
   transition: transform 0.3s;
}

.faq-container-rbt .faq-item.active .faq-question i {
   transform: rotate(180deg);
}

.faq-container-rbt .faq-answer {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.3s ease;
}

.faq-container-rbt .faq-item.active .faq-answer {
   max-height: 300px;
}

.faq-container-rbt .faq-answer p {
   padding: 0 1.5rem 1.5rem;
   margin: 0;
   color: var(--text-secondary);
}

@media (max-width: 768px) {
   .btn-group {
      flex-direction: column;
   }

   .redirect-table th:nth-child(2),
   .redirect-table td:nth-child(2) {
      max-width: 180px;
   }
}
