/* Twitter-inspired Theme for PPDB SMK */

/* ===== GLOBAL STYLES ===== */
:root {
    --twitter-blue: #1DA1F2;
    --twitter-dark-blue: #1a91da;
    --twitter-black: #14171a;
    --twitter-gray: #657786;
    --twitter-light-gray: #aab8c2;
    --twitter-extra-light-gray: #e1e8ed;
    --twitter-white: #ffffff;
    --twitter-hover-bg: #f5f8fa;
    --twitter-border: #e1e8ed;
    --twitter-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    --twitter-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Smooth scrolling for entire page */
html {
    scroll-behavior: smooth;
}

/* Global smooth transitions */
* {
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    background-color: var(--twitter-white);
    color: var(--twitter-black);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth transitions for interactive elements */
a, button, input, textarea, select, .btn, .twitter-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth hover effects */
a:hover, button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Smooth card hover */
.twitter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Smooth form focus effects */
.form-control:focus, .form-select:focus {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.02);
    box-shadow: 0 0 0 0.2rem rgba(29, 161, 242, 0.25);
}

/* Smooth button press effects */
.btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Smooth pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Ensure consistent font rendering across all elements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p, span, div, a, button, input, textarea, select, label {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-text-size-adjust: 100%;
    }
}

/* Fix for Android */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    body {
        text-size-adjust: 100%;
    }
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --twitter-blue: #1DA1F2;
    --twitter-dark-blue: #1a91da;
    --twitter-black: #ffffff;
    --twitter-gray: #8b98a5;
    --twitter-light-gray: #eff3f4;
    --twitter-extra-light-gray: #38444d;
    --twitter-white: #000000;
    --twitter-hover-bg: #1c273c;
    --twitter-border: #38444d;
    --twitter-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --twitter-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--twitter-white) !important;
    border-bottom: 1px solid var(--twitter-border);
    box-shadow: var(--twitter-shadow);
    backdrop-filter: none;
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--twitter-black) !important;
    font-size: 1.25rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: var(--twitter-blue) !important;
    transform: none;
}

.navbar-nav .nav-link {
    color: var(--twitter-gray) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--twitter-black) !important;
    background-color: var(--twitter-hover-bg);
}

.navbar-nav .nav-link.active {
    color: var(--twitter-black) !important;
    font-weight: 700;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--twitter-blue) 0%, var(--twitter-dark-blue) 100%);
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-section::before {
    display: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 9999px;
    padding: 12px 24px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--twitter-blue);
    color: var(--twitter-white);
}

.btn-primary:hover {
    background-color: var(--twitter-dark-blue);
    transform: translateY(-1px);
    box-shadow: var(--twitter-shadow-hover);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--twitter-blue);
    border: 2px solid var(--twitter-blue);
}

.btn-outline-primary:hover {
    background-color: rgba(29, 161, 242, 0.1);
    color: var(--twitter-dark-blue);
    transform: translateY(-1px);
}

.btn-light {
    background-color: var(--twitter-white);
    color: var(--twitter-black);
    border: 1px solid var(--twitter-border);
}

.btn-light:hover {
    background-color: var(--twitter-hover-bg);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-warning {
    background-color: #ff9500;
    color: var(--twitter-white);
}

.btn-warning:hover {
    background-color: #e6850e;
    transform: translateY(-1px);
    box-shadow: var(--twitter-shadow-hover);
}

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--twitter-border);
    border-radius: 16px;
    background-color: var(--twitter-white);
    box-shadow: var(--twitter-shadow);
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--twitter-shadow-hover);
    transform: translateY(-2px);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--twitter-black);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--twitter-gray);
    line-height: 1.6;
}

/* ===== ICON BOXES ===== */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin: 0 auto 1rem;
}

.icon-box:hover {
    transform: scale(1.05);
}

.jurusan-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin: 0 auto 1rem;
}

.jurusan-icon:hover {
    transform: scale(1.05);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--twitter-border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    border: 3px solid var(--twitter-white);
    box-shadow: var(--twitter-shadow);
    z-index: 2;
}

.timeline-content {
    background-color: var(--twitter-white);
    border: 1px solid var(--twitter-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--twitter-shadow);
    margin-left: 60px;
    transition: all 0.2s ease;
}

.timeline-content:hover {
    box-shadow: var(--twitter-shadow-hover);
    transform: translateY(-1px);
}

/* ===== SCHEDULE ITEMS ===== */
.schedule-item {
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.schedule-item:hover {
    background-color: var(--twitter-hover-bg);
    transform: translateX(4px);
}

/* ===== BADGES ===== */
.badge {
    border-radius: 12px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== FORMS ===== */
.form-control {
    border: 2px solid var(--twitter-border);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: var(--twitter-white);
}

.form-control:focus {
    border-color: var(--twitter-blue);
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
    outline: none;
}

.form-select {
    border: 2px solid var(--twitter-border);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: var(--twitter-white);
}

.form-select:focus {
    border-color: var(--twitter-blue);
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
    outline: none;
}

.form-label {
    font-weight: 700;
    color: var(--twitter-black);
    margin-bottom: 0.5rem;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    box-shadow: var(--twitter-shadow);
}

.alert-success {
    background-color: rgba(23, 191, 99, 0.1);
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #842029;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #664d03;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-left: 4px solid #0dcaf0;
}

/* ===== TABLES ===== */
.table {
    background-color: var(--twitter-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--twitter-shadow);
}

.table thead th {
    background-color: var(--twitter-hover-bg);
    color: var(--twitter-black);
    font-weight: 700;
    border-bottom: 2px solid var(--twitter-border);
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--twitter-hover-bg);
}

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 3px solid var(--twitter-border);
    border-top: 3px solid var(--twitter-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--twitter-hover-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--twitter-light-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--twitter-gray);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .gallery-container {
        padding: 2rem;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        display: inline-block;
        margin: 0.25rem 0.5rem;
    }
    
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-7 {
        margin-bottom: 2rem;
    }
    
    .gallery-container {
        padding: 1.5rem;
    }
    
    .gallery-row {
        margin-bottom: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        margin-left: 80px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .hero-section .row > div {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Gallery Responsive */
    .gallery-container {
        padding: 1rem;
    }
    
    .gallery-track {
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .gallery-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .gallery-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    /* Stats Responsive */
    .hero-section .row .col-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
    
    /* Form Responsive */
    .form-row {
        flex-direction: column;
    }
    
    .form-row > div {
        margin-bottom: 1rem;
    }
}

/* Extra Small Devices (575px and below) */
@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem;
        margin: 0.2rem 0.3rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Gallery Mobile */
    .gallery-container {
        padding: 0.5rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .gallery-overlay h5 {
        font-size: 1.2rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
        opacity: 0.95;
    }
    
    /* Stats Mobile */
    .hero-section .row .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1rem;
    }
    
    .hero-section .row .col-4:nth-child(3) {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-section .row h3 {
        font-size: 1.5rem;
    }
    
    .hero-section .row p {
        font-size: 0.85rem;
    }
    
    /* Buttons Mobile */
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    /* Cards Mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        margin-left: 60px;
        padding: 0.75rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    /* Forms Mobile */
    .form-control {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    /* Tables Mobile */
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        vertical-align: middle;
    }
    
    /* Admin Mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1051;
        background: var(--twitter-blue);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Landscape Orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .gallery-container,
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        break-inside: avoid;
    }
    
    .table {
        font-size: 12px;
    }
}

/* ===== TWITTER-LIKE COMPONENTS ===== */
.twitter-card {
    border: 1px solid var(--twitter-border);
    border-radius: 16px;
    padding: 1rem;
    background-color: var(--twitter-white);
    transition: all 0.2s ease;
    cursor: pointer;
}

.twitter-card:hover {
    background-color: var(--twitter-hover-bg);
    box-shadow: var(--twitter-shadow-hover);
}

.twitter-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--twitter-extra-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--twitter-gray);
}

.twitter-action-btn {
    background: none;
    border: none;
    color: var(--twitter-gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.twitter-action-btn:hover {
    background-color: rgba(29, 161, 242, 0.1);
    color: var(--twitter-blue);
}

.twitter-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.25rem;
    padding: 12px 0;
    resize: none;
    background-color: transparent;
}

.twitter-input::placeholder {
    color: var(--twitter-light-gray);
}

/* ===== SECTION STYLING ===== */
section {
    padding: 4rem 0;
}

section.bg-light {
    background-color: var(--twitter-hover-bg) !important;
}

.display-4 {
    font-weight: 700;
    color: var(--twitter-black);
}

.display-5 {
    font-weight: 700;
    color: var(--twitter-black);
}

.lead {
    color: var(--twitter-gray);
    font-weight: 400;
}

.text-primary {
    color: var(--twitter-blue) !important;
}

.text-muted {
    color: var(--twitter-gray) !important;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--twitter-black);
    color: var(--twitter-white);
    padding: 2rem 0;
}

footer a {
    color: var(--twitter-light-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--twitter-blue);
}

/* ===== LOADING STATES & SKELETON SCREENS ===== */
.skeleton {
    background: linear-gradient(90deg, var(--twitter-hover-bg) 25%, var(--twitter-border) 50%, var(--twitter-hover-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
    border-radius: 6px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    border-radius: 20px;
}

.skeleton-card {
    height: 200px;
    border-radius: 16px;
    margin-bottom: 16px;
}

/* Loading Spinner Enhanced */
.loading-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-spinner .spinner {
    border: 3px solid var(--twitter-border);
    border-top: 3px solid var(--twitter-blue);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--twitter-gray);
    font-size: 14px;
    font-weight: 500;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: var(--twitter-hover-bg);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--twitter-blue), var(--twitter-dark-blue));
    border-radius: 9999px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
.bounce {
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-8px);
    }
    70% {
        transform: translateY(-4px);
    }
}

/* Shake Animation */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

/* ===== MICRO-INTERACTIONS & ENHANCED HOVER EFFECTS ===== */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--twitter-shadow-hover);
}

.hover-glow {
    transition: all 0.3s ease;
    position: relative;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, rgba(29, 161, 242, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hover-glow:hover::before {
    opacity: 1;
}

.hover-tilt {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(29, 161, 242, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Slide In Animation */
.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale In Animation */
.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Button Interactions */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-2px);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card:hover .card-title {
    color: var(--twitter-blue);
}

/* Form Input Enhancements */
.form-control:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
}

.form-control:hover {
    border-color: var(--twitter-blue);
}

/* Social Share Animation */
.social-share {
    transition: all 0.3s ease;
}

.social-share:hover {
    transform: translateY(-2px) rotate(5deg);
}

/* Badge Animation */
.badge {
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Enhanced Loading States */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--twitter-blue);
    animation: loading-dots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--twitter-hover-bg);
    border: 2px solid var(--twitter-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--twitter-gray);
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-icon {
    background: var(--twitter-blue);
    border-color: var(--twitter-blue);
    color: var(--twitter-white);
}

.progress-step.completed .progress-step-icon {
    background: #28a745;
    border-color: #28a745;
    color: var(--twitter-white);
}

.progress-step-label {
    font-size: 12px;
    color: var(--twitter-gray);
    font-weight: 500;
}

.progress-step.active .progress-step-label,
.progress-step.completed .progress-step-label {
    color: var(--twitter-black);
    font-weight: 600;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--twitter-white);
    border: 1px solid var(--twitter-border);
    border-radius: 16px;
    box-shadow: var(--twitter-shadow-hover);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--twitter-blue);
}

.toast.success::before {
    background: #28a745;
}

.toast.error::before {
    background: #dc3545;
}

.toast.warning::before {
    background: #ffc107;
}

.toast.info::before {
    background: #17a2b8;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--twitter-white);
}

.toast.success .toast-icon {
    background: #28a745;
}

.toast.error .toast-icon {
    background: #dc3545;
}

.toast.warning .toast-icon {
    background: #ffc107;
    color: var(--twitter-black);
}

.toast.info .toast-icon {
    background: #17a2b8;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--twitter-black);
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    color: var(--twitter-gray);
    font-size: 13px;
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--twitter-gray);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: var(--twitter-hover-bg);
    color: var(--twitter-black);
}

/* ===== FOOTER STYLING ===== */
footer {
    background-color: var(--twitter-black);
    color: var(--twitter-white);
    padding: 2rem 0;
    margin-top: auto;
}

footer a {
    color: var(--twitter-light-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--twitter-blue);
}

/* ===== ADMIN PANEL SPECIFIC ===== */
.admin-sidebar {
    background-color: var(--twitter-black);
    min-height: 100vh;
    color: var(--twitter-white);
}

.admin-sidebar .nav-link {
    color: var(--twitter-light-gray);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--twitter-blue);
    color: var(--twitter-white);
}

.admin-main-content {
    background-color: var(--twitter-hover-bg);
    min-height: 100vh;
}

.dashboard-card {
    background-color: var(--twitter-white);
    border: 1px solid var(--twitter-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--twitter-shadow);
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: var(--twitter-shadow-hover);
    transform: translateY(-1px);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--twitter-black);
}

.stats-label {
    color: var(--twitter-gray);
    font-weight: 500;
}
