:root {
    --primary-color: #8a3ab9;
    --primary-gradient: linear-gradient(to right, #8a3ab9, #e95950, #fccc63);
    --card-bg: rgba(255, 255, 255, 0.85);
    --shadow-color: rgba(94, 53, 177, 0.15);
    --transition-speed: 0.3s;
    --text-color: #4a5568;
    --text-color-light: #718096;
    --text-color-dark: #2d3748;
    --purple-light: rgba(235, 244, 255, 0.9);
    --purple-dark: #6b46c1;
    --error-color: #e53e3e;
    --border-color: #e2e8f0;
    --border-radius: 20px;
    --border-radius-sm: 10px;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 0.8s ease;
}

.main-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.title-text {
    position: relative;
    z-index: 10;
}

.title-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(to right, rgba(237, 100, 166, 0.3), rgba(139, 92, 246, 0.3), rgba(79, 70, 229, 0.3));
    border-radius: 4px;
}

.subtitle {
    color: var(--text-color-light);
    font-size: 16px;
    margin-top: 0;
}

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

/* Animasi shake untuk error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.hover-shadow {
    box-shadow: 0 15px 35px var(--shadow-color) !important;
}

.drag-area {
    border: 2px dashed var(--primary-color);
    transition: all var(--transition-speed) ease;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
}

.drag-area.active {
    border-color: #4299e1;
    background-color: var(--purple-light);
    transform: scale(1.02);
}

.page {
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

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

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    margin-bottom: 30px;
    padding: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.gradient-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 20px 20px 0 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: -20px -20px 20px -20px;
}

.gradient-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    transition: all var(--transition-speed);
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.75rem 1.5rem;
    border: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
    margin-top: 15px;
    font-size: 16px;
}

.instagram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(225, 48, 108, 0.4);
}

.instagram-btn:active {
    transform: translateY(-1px);
}

.copy-btn {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
    transition: all var(--transition-speed);
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.25);
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(56, 239, 125, 0.4);
}

.back-btn {
    background: linear-gradient(45deg, #636fa4, #8e9eab);
    color: white;
    transition: all var(--transition-speed);
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(99, 111, 164, 0.25);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(99, 111, 164, 0.4);
}

.download-btn {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    transition: all var(--transition-speed);
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.25);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(42, 82, 152, 0.4);
}

.unfollower-item {
    transition: all 0.2s;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    border-left: 3px solid transparent;
    padding: 0.75rem;
}

.unfollower-item:hover {
    border-left: 3px solid var(--primary-color);
    transform: translateX(3px);
    background-color: rgba(138, 58, 185, 0.05);
}

/* Tambahan class untuk mengganti Tailwind */
.svg-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    margin: 0 auto;
    display: block;
}

.svg-icon-small {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.icon {
    margin-bottom: 15px;
}

.text {
    margin-top: 24px;
}

.drag-text {
    color: var(--text-color-dark);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.or-text {
    color: var(--text-color-light);
    margin: 8px 0;
}

.hidden {
    display: none;
}

.info-box {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
    font-size: 14px;
    color: var(--text-color);
}

.info-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--purple-dark);
    font-size: 16px;
}

.info-steps {
    padding-left: 20px;
    list-style-type: decimal;
}

.info-steps li {
    margin-bottom: 8px;
}

.error-box {
    background-color: #fff5f5;
    border-left: 4px solid var(--error-color);
    color: #c53030;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin-top: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.error-box.visible {
    display: block;
}

.error-content {
    display: flex;
    align-items: center;
}

.error-icon {
    padding: 4px;
}

.error-icon .svg-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    color: var(--error-color);
}

.error-message {
    font-weight: 500;
    display: block;
}

.result-summary {
    background-color: #f3ecff;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-color);
}

.result-total {
    color: var(--text-color-dark);
    font-size: 18px;
    margin-bottom: 8px;
}

.total-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 20px;
}

.result-timestamp {
    color: var(--text-color-light);
    margin-top: 8px;
}

.timestamp-value {
    font-weight: 500;
}

.result-container {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.result-header {
    background-color: #f8fafc;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.result-title {
    color: var(--text-color-dark);
    font-weight: 500;
    font-size: 18px;
    margin: 0;
}

.result-list-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
}

.unfollowers-list {
    list-style: none;
    padding: 0 8px;
    margin: 0;
    border-top: 1px solid #f1f3f4;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-color-light);
    font-size: 14px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 242, 243, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(138, 58, 185, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 58, 185, 0.5);
}

@media (min-width: 640px) {
    .button-group {
        flex-direction: row;
        justify-content: flex-end;
        gap: 12px;
    }
    
    .title {
        font-size: 36px;
    }
    
    .svg-icon {
        width: 80px;
        height: 80px;
    }
    
    .result-list-container {
        max-height: 400px;
    }
}

/* Animasi Loading Dot untuk tombol */
.loading-dot-animation {
    display: inline-flex;
    align-items: center;
    height: 16px;
}

.loading-dot-animation::after {
    content: "...";
    width: 16px;
    animation: loading-dots 1.3s infinite;
    font-weight: bold;
    letter-spacing: 2px;
}

@keyframes loading-dots {
    0%, 100% { opacity: 0.2; }
    20% { opacity: 1; }
    40% { opacity: 0.2; }
    60% { opacity: 0.2; }
    80% { opacity: 0.2; }
}

/* Styling untuk tombol disabled */
button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Animasi Loading */
.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin: 0 auto;
}

.loading-bubble {
    width: 20px;
    height: 20px;
    margin: 0 5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8a3ab9, #e95950);
    animation: loading-bubble-animation 1.4s infinite ease-in-out both;
}

.loading-bubble-1 {
    animation-delay: -0.32s;
}

.loading-bubble-2 {
    animation-delay: -0.16s;
}

@keyframes loading-bubble-animation {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.7;
    }
    40% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 15px rgba(138, 58, 185, 0.6);
    }
}

/* Tambahkan animasi skeleton loading untuk daftar unfollowers */
.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading-animation 1.5s infinite;
    border-radius: 4px;
    height: 24px;
    margin: 8px 0;
}

.w-16 {
    width: 64px;
}

.w-32 {
    width: 128px;
}

.w-48 {
    width: 192px;
}

.h-5 {
    height: 20px;
}

.h-7 {
    height: 28px;
}

.rounded-full {
    border-radius: 9999px;
}

.mr-3 {
    margin-right: 12px;
}

@keyframes skeleton-loading-animation {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Media Query untuk Optimalisasi Mobile */
@media (max-width: 480px) {
  .card {
    width: 95%;
    margin: 10px auto;
    padding: 15px 10px;
  }
  
  .stats-container {
    height: auto;
    min-height: 200px;
  }
  
  .chart-container {
    height: 220px;
  }
  
  .button-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-group button {
    width: 100%;
  }
  
  .chart-type-btn, 
  .instagram-btn,
  .copy-btn,
  .download-btn,
  .back-btn {
    min-height: 44px; /* Ukuran minimum untuk target touch */
    padding: 12px 16px;
  }
  
  /* Meningkatkan jarak antar elemen yang dapat diklik */
  .chart-types {
    gap: 12px;
  }
  
  /* Area drag & drop yang dioptimalkan untuk touch */
  .drag-area {
    padding: 25px 15px;
  }
}

/* Styling untuk mode hemat data */
.simple-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  background-color: #f3ecff;
  border-radius: 12px;
  margin: 10px 0;
}

.simple-summary p {
  margin: 5px 0;
}

.simple-summary p:first-child {
  font-weight: 500;
  color: var(--primary-color);
}

.simple-summary strong {
  font-size: 24px;
  color: var(--text-color-dark);
}

/* Styling untuk mobile-placeholder */
.mobile-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-bottom: 20px;
}

.placeholder-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading-animation 1.5s infinite;
  margin-bottom: 20px;
}

.placeholder-text {
  width: 80%;
  height: 24px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading-animation 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 30px;
}

.placeholder-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.placeholder-item {
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading-animation 1.5s infinite;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .mobile-placeholder {
    display: flex;
  }
  
  .result-summary,
  .stats-container,
  .result-container,
  .button-group {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1s;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
} 