@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    cursor: none;
    font-family: 'Inter', sans-serif;
    background: #0f0f23;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
}

.custom-cursor {
    position: fixed;
    opacity: 0.68;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4a5ba6, #3a4b96);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    opacity: 0.68;
    top: -50%;
    left: -200%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 70%
    );
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s ease;
}

.custom-cursor.shine::before {
    transform: translateX(300%) skewX(-15deg);
    opacity: 0.68;
}

.custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.7);
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(102, 126, 234, 0.6);
    opacity: 0.68;
}

button:hover ~ .custom-cursor {
    transform: translate(-50%, -50%) scale(1.5);
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: rgba(102, 126, 234, 0.8);
    opacity: 0.68;
}

button, 
a, 
.tab-item, 
.main-site-link:hover, 
.discord-profile:hover,
.tool-card:hover,
.input-field:hover,
.input-field.small-input:hover,
[onclick] {
    cursor: none !important;
}


.sidebar {
    width: 200px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-right: 1px solid #2d3748;
    padding: 1rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f7fafc;
    padding: 0 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tab-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #a0aec0;
    cursor: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.tab-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #e2e8f0;
}

.tab-item.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: bold;
}



.main-container {
    margin-left: 200px;
    flex: 1;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #a0aec0;
    font-size: 1.1rem;
}

.home-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.welcome-section {
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
    border: 1px solid #4a5568;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 1rem;
}

.welcome-text {
    font-size: 1.2rem;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.main-site-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.main-site-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: none;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: #667eea;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.tool-description {
    color: #a0aec0;
    line-height: 1.5;
}

.input-section {
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
    border: 1px solid #4a5568;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    top: auto;
    z-index: 50;
}

.input-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-field {
    width: 100%;
    min-height: 120px;
    background: rgba(45, 55, 72, 0.7);
    border: 2px solid #4a5568;
    border-radius: 12px;
    padding: 1rem;
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
}

    .input-field.small-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-height: auto;
    }

.input-field:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(45, 55, 72, 0.9);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.upload-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: none;
    transition: all 0.3s ease;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.file-input {
    display: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.section {
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
    border: 1px solid #4a5568;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #4a5568;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-group {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #4a5568;
}

.method-group {
    margin-bottom: 1rem;
}

.method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: none;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.method-header:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.method-name {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.expand-icon {
    color: #667eea;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.method-group.expanded .expand-icon {
    transform: rotate(90deg);
}

.method-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.method-group.expanded .method-content {
    max-height: 200px;
}

.method-output {
    background: rgba(45, 55, 72, 0.7);
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #cbd5e0;
    word-break: break-all;
    white-space: pre-wrap;
    min-height: 80px;
    position: relative;
    max-height: 150px;
    overflow-y: auto;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    color: #667eea;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: none;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: rgba(102, 126, 234, 0.3);
}

.placeholder-text {
    color: #718096;
    font-style: italic;
}

.browser-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.info-category {
    background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 1.5rem;
}

.info-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #4a5568;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
}

.info-label {
    font-weight: 500;
    color: #a0aec0;
    min-width: 150px;
}

.info-value {
    color: #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    text-align: right;
    flex: 1;
}

.disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    .sidebar {
        width: 150px;
    }
    
    .main-container {
        margin-left: 150px;
        padding: 1rem;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .sidebar-title {
        display: none;
    }
    
    .tab-item {
        white-space: nowrap;
        min-width: auto;
    }
    
    .main-container {
        margin-left: 0;
    }
}

.encoding-selector {
    margin-top: 10px;
    margin-bottom: 15px;
}

.encoding-selector label {
    margin-right: 10px;
    font-weight: 500;
}

.encoding-selector select {
    position: absolute;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    color: #667eea;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: none;
    transition: all 0.3s ease;
}

.regex-highlight {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    color: #667eea;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    margin: 0 0.1rem;
}

.profile-pic-container {
    position: relative;
    width: 80px;
    height: 80px;
    cursor: none;
}

.discord-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #2c2f33;
    transition: transform 0.3s ease;
}

.status-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 4px solid;
    transition: all 0.3s ease;
    pointer-events: none;
}

.status-ring.online {
    border-color: #43b581;
    box-shadow: 0 0 15px rgba(67, 181, 129, 0.5);
}

.status-ring.idle {
    border-color: #faa61a;
    box-shadow: 0 0 15px rgba(250, 166, 26, 0.5);
}

.status-ring.dnd {
    border-color: #f04747;
    box-shadow: 0 0 15px rgba(240, 71, 71, 0.5);
}

.status-ring.offline {
    border-color: #747f8d;
    box-shadow: 0 0 15px rgba(116, 127, 141, 0.3);
}

.discord-profile:hover .discord-profile-pic {
    transform: scale(1.05);
}

.discord-profile:hover .status-ring {
    transform: scale(1.1);
}

.status-dot.online {
    background-color: #43b581;
}

.status-dot.idle {
    background-color: #faa61a;
}

.status-dot.dnd {
    background-color: #f04747;
}

.status-dot.offline {
    background-color: #747f8d;
}

.tooltip-status span {
    font-size: 12px;
}

.discord-profile-container {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
    z-index: 100;
}

.discord-profile {
    position: relative;
    display: inline-block;
}

.profile-tooltip {
    position: absolute;
    top: 0px;             /* Align with top of profile picture */
    right: 100%;        /* Position to the left of the profile picture */
    margin-right: 20px; /* Space to the left of profile picture */
    background: #2c2f33;
    border: 1px solid #40444b;
    border-radius: 8px;
    padding: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.profile-tooltip::after {
    content: none;
}

.discord-profile:hover .profile-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #40444b;
}

.tooltip-display-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.tooltip-username {
    color: #b9bbbe;
    font-size: 14px;
}

.tooltip-status {
    margin-bottom: 8px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.spotify-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid #40444b;
    margin-top: 8px;
}

.spotify-icon {
    color: #1db954;
    font-size: 16px;
    flex-shrink: 0;
}

.spotify-info {
    flex: 1;
}

.spotify-track a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}
.spotify-artist a {
    text-decoration: none;
    transition: all 0.2s ease;
    color: #b9bbbe;
    font-size: 12px;
}

.spotify-track a:hover,
.spotify-artist a:hover {
    color: #1db954;
    text-decoration: underline;
}