/* General Styles */
.discord-fonts-wrap  {
    background-color: #36393f;
    color: #dcddde;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    /*height: 100vh;*/
}

.discord-fonts-wrap .container.discord-fonts {
    background-color: #2f3136;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    height: calc(100%);
}

/* Header */
.discord-fonts-wrap header {
    /*background-color: #202225;*/
    /*padding: 30px;
    text-align: center;*/
    color: #ffffff;
}

.discord-fonts-wrap h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: inherit;
}

.discord-fonts-wrap h1:before{
    content:"# ";
}

.discord-fonts-wrap .subtitle {
    font-size: 1.1rem;
    color: #b9bbbe;
}

/* Input Section */
.discord-fonts-wrap .input-section {
    padding: 10px;
    background-color: #292b2f;
}

.discord-fonts-wrap .input-container {
    position: relative;
}

.discord-fonts-wrap input[type="text"] {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.2rem;
    border: 2px solid #202225;
    border-radius: 10px;
    background-color: #40444b;
    color: #dcddde;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.discord-fonts-wrap input[type="text"]:focus {
    border-color: #7289da;
}

.discord-fonts-wrap .char-count {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #72767d;
    font-size: 0.9rem;
}

/* Fonts Section */
.discord-fonts-wrap .fonts-section {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* For WebKit browsers (Chrome, Edge, Safari) */
.discord-fonts-wrap .fonts-section::-webkit-scrollbar {
  width: 12px;            /* adjust thickness */
}

.discord-fonts-wrap .fonts-section::-webkit-scrollbar-track {
  background: #000;       /* black background */
}

.discord-fonts-wrap .fonts-section::-webkit-scrollbar-thumb {
  background: #fff;       /* white thumb */
  border-radius: 6px;
}

/* For Firefox */
.discord-fonts-wrap .fonts-section {
  scrollbar-width: thin;
  scrollbar-color: #fff #000; /* thumb track */
}


.discord-fonts-wrap .fonts-category {
    margin-bottom: 40px;
}

.discord-fonts-wrap .category-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #40444b;
}

.discord-fonts-wrap .fonts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 1fr);
    gap: 20px;
}

.discord-fonts-wrap .font-item {
    background-color: #36393f;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.discord-fonts-wrap .font-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.discord-fonts-wrap .font-display {
    font-size: 1.4rem;
    line-height: 1.6;
    min-height: 50px;
    word-break: break-all;
    padding: 10px;
    background-color: #2f3136;
    border-radius: 4px;
    color: #dcddde;
    white-space: pre-wrap;
}

/* Toast Notification */
.discord-fonts-wrap .toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #7289da;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.discord-fonts-wrap .toast.show {
    opacity: 1;
    visibility: visible;
}

/* Footer */
.discord-fonts-wrap .footer {
    text-align: center;
    padding: 20px;
    color: #72767d;
    font-size: 0.9rem;
    background-color: #202225;
}

/* Discord Layout */
.discord-fonts-wrap .discord-layout {
    display: flex;
    height: 50vh;
    min-height: 600px;
}

.discord-fonts-wrap .sidebar {
    width: 240px;
    background-color: #2f3136;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.discord-fonts-wrap .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #202225;
    color: #ffffff;
}

.discord-fonts-wrap .sidebar-header strong {
    font-size: 1.2rem;
}

.discord-fonts-wrap .channels {
    list-style: none;
    padding: 20px 10px;
    margin: 0;
    overflow-y: auto;
}

.discord-fonts-wrap .channels li:before{
    content:"# ";
}
.discord-fonts-wrap .channels li {
    padding: 10px 15px;
    border-radius: 4px;
    color: #8e9297;
    cursor: pointer;
    margin-bottom: 5px;
    font-weight: 500;
}

.discord-fonts-wrap .channels li:hover, .discord-fonts-wrap .channels li.active {
    background-color: #3a3c41;
    color: #ffffff;
}

.discord-fonts-wrap .content {
    flex-grow: 1;
    background-color: #36393f;
    overflow-y: auto;
}


/* Responsive */
@media (max-width: 768px) {
    .discord-fonts-wrap .discord-layout {
        flex-direction: column;
    }

    .discord-fonts-wrap .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
    }

    .discord-fonts-wrap .channels {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .discord-fonts-wrap .channels li {
        margin-bottom: 0;
        margin-right: 5px;
        white-space: nowrap;
    }

    .discord-fonts-wrap .container.discord-fonts {
        margin: 0;
        border-radius: 0;
        height: 100%;
    }
}


@media (max-width: 600px) {
    .discord-fonts-wrap h1 {
        font-size: 2rem;
    }
    
    .discord-fonts-wrap .fonts-container {
        grid-template-columns: 1fr;
    }
}