body {
    background: repeating-linear-gradient(
        45deg,
        #e8e8e8,
        #e8e8e8 10px,
        #f0f0f0 10px,
        #f0f0f0 20px
    );
    font-family: "Helvetica", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    cursor:
        url("/images/cursor.png") 0 0,
        auto;
}

.navbar {
    background-color: transparent;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.navbar a {
    color: #2d7a8a;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-separator {
    color: #2d7a8a;
    margin: 0 2px;
}

.progress-container {
    margin: 15px 0;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d7a8a, #4a9fb0);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.file-link {
    color: #2d7a8a;
    text-decoration: none;
    word-break: break-all;
}

.file-link:hover {
    text-decoration: underline;
}

.custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    background-image: url("/images/cursor.png");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9999;
    filter: invert(1);
    transform: translate(0, 0);
    transition: transform 0.1s ease;
}

.custom-cursor.active {
    transform: translate(0, 0) scale(0.8);
}

* {
    cursor: none !important;
}

.navbar-content a {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-content a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-content a:hover::after {
    width: 100%;
}

.main-content {
    padding: 20px;
}

@media (max-width: 768px) {
    .navbar-content {
        font-size: 12px;
    }

    .navbar a {
        padding: 6px 8px;
        font-size: 12px;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    color: #2d7a8a;
    font-size: 64px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: "Slackey", cursive;
    font-style: italic;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.subtitle {
    color: #2d7a8a;
    font-size: 22px;
    margin-bottom: 30px;
}

.upload-area {
    width: 650px;
    max-width: 90%;
    margin: 0 auto 30px;
    border: 2px solid #2d7a8a;
    border-radius: 8px;
    background: linear-gradient(135deg, #d4e8ed 0%, #c8e2e8 100%);
    padding: 40px 20px;
    cursor: pointer;
    transition: background-color 150ms linear;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-area:hover {
    background: linear-gradient(135deg, #c0e0e6 0%, #b4dce2 100%);
}

.upload-area.drag-over {
    background: linear-gradient(135deg, #b4dce2 0%, #a8d6dc 100%);
    border-color: #1a5a6a;
}

.upload-text {
    color: #1a4a5a;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}

.file-input {
    display: none;
}

.upload-btn {
    background: #2d7a8a;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 24px;
    display: inline-block;
}

.upload-btn:hover:not(:disabled) {
    background: #1a5a6a;
    transform: translateY(-1px);
}

.upload-btn:active:not(:disabled) {
    transform: translateY(0);
}

.upload-btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.status-message {
    padding: 16px 24px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
    display: none;
}

.status-message.success {
    background: #d4f8d4;
    color: #2d7a2d;
    border: 1px solid #2d7a2d;
}

.status-message.error {
    background: #f8d4d4;
    color: #7a2d2d;
    border: 1px solid #7a2d2d;
}

.status-message.info {
    background: #d4e8f8;
    color: #2d5a7a;
    border: 1px solid #2d5a7a;
}

.upload-result {
    background: #d4f8d4;
    border: 2px solid #2d7a2d;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    display: none;
}

.upload-result.show {
    display: block;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: bold;
    color: #1a4a5a;
    margin-bottom: 4px;
}

.file-size {
    color: #666;
    font-size: 14px;
}

.file-url {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 12px;
    color: #333;
    min-width: 200px;
    text-align: center;
}

.file-link {
    color: #2d7a8a;
    text-decoration: none;
    font-size: 12px;
    word-break: break-all;
    max-width: 200px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-link:hover {
    color: #1a5a6a;
}

.copy-btn {
    background: #2d7a8a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.copy-btn:hover {
    background: #1a5a6a;
}

.copy-btn:active {
    background: #0f4a5a;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #2d7a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    color: #666;
    font-size: 14px;
}

.dmca-badge {
    display: inline-block;
    margin-top: 20px;
}

.dmca-badge img {
    max-width: 120px;
    height: auto;
}

@media screen and (max-width: 640px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        font-size: 48px;
    }

    .logo-image {
        width: 60px;
        height: 60px;
    }

    .upload-area {
        width: 90%;
        padding: 60px 20px;
    }

    .upload-text {
        font-size: 32px;
    }

    .files-table th,
    .files-table td {
        padding: 12px 8px;
        font-size: 12px;
    }

    .file-link {
        max-width: 120px;
    }
}

.notes-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.notes-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.notes-area {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
}

.notes-area:focus {
    outline: none;
    border-color: #2d7a8a;
    background-color: white;
}

.notes-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.save-btn {
    background-color: #2d7a8a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background-color: #236169;
}

.save-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.character-count {
    text-align: right;
    color: #666;
    font-size: 12px;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .notes-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .notes-controls {
        flex-direction: column;
    }
}

.encode-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.encode-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.control-tabs,
.operation-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn,
.op-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #2d7a8a;
    background: white;
    color: #2d7a8a;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn.active,
.op-btn.active,
.tab-btn:hover,
.op-btn:hover {
    background: #2d7a8a;
    color: white;
}

.encode-section {
    margin-bottom: 2rem;
}

.encode-section.hidden {
    display: none;
}

.encode-area {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
}

.encode-area:focus {
    outline: none;
    border-color: #2d7a8a;
    background-color: white;
}

.encode-area[readonly] {
    background-color: #f5f5f5;
    cursor: default;
}

.process-btn,
.download-btn {
    background-color: #2d7a8a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.process-btn:hover,
.download-btn:hover {
    background-color: #236169;
}

.process-btn:disabled,
.download-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

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

.result-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2d7a8a;
}

.result-controls {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .encode-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-tabs,
    .operation-tabs {
        justify-content: center;
    }

    .result-controls {
        flex-direction: column;
    }
}

.email-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.email-form {
    margin-bottom: 2rem;
}

.email-field {
    margin-bottom: 1.5rem;
}

.email-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2d7a8a;
    font-size: 16px;
}

.email-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #f9f9f9;
}

.email-input:focus {
    outline: none;
    border-color: #2d7a8a;
    background-color: white;
}

.email-area {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: "Helvetica", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    background-color: #f9f9f9;
}

.email-area:focus {
    outline: none;
    border-color: #2d7a8a;
    background-color: white;
}

.send-btn {
    background-color: #2d7a8a;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background-color: #236169;
}

.send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.github-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.github-search {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.username-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #2d7a8a;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.username-input:focus {
    outline: none;
    border-color: #4a9fb0;
    box-shadow: 0 0 0 3px rgba(45, 122, 138, 0.1);
}

.analyze-btn {
    background-color: #2d7a8a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.analyze-btn:hover:not(:disabled) {
    background-color: #4a9fb0;
    transform: translateY(-2px);
}

.analyze-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2d7a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.user-results {
    max-width: 800px;
    margin: 0 auto;
}

.github-profile {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #2d7a8a;
}

.profile-info h2 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.8rem;
}

.profile-info .username {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 1.1rem;
}

.profile-info .bio {
    margin: 0;
    color: #555;
    font-style: italic;
    max-width: 500px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d7a8a;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.profile-details {
    margin-bottom: 25px;
}

.detail {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail:last-child {
    border-bottom: none;
}

.detail strong {
    color: #2d7a8a;
    display: inline-block;
    min-width: 120px;
}

.analysis-summary,
.commit-emails,
.recent-repos {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.analysis-summary h3,
.commit-emails h3,
.recent-repos h3 {
    color: #2d7a8a;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.commit-emails ul,
.recent-repos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commit-emails li,
.recent-repos li {
    padding: 8px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2d7a8a;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
}

.summary-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.summary-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 80px;
    border: 2px solid #2d7a8a;
}

.summary-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d7a8a;
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.email-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
}

.email-warning p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
}

.author-results {
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.author-results h3 {
    color: #2d7a8a;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.author-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-results li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-results li:last-child {
    border-bottom: none;
}

.author-results strong {
    color: #2d7a8a;
    font-weight: 600;
}

.author-name {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

.no-results {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.no-results p {
    color: #666;
    margin: 5px 0;
}

.error-message {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

#author-list {
    margin-top: 20px;
}

.commit-details {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.commit-details h3 {
    color: #2d7a8a;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.commit-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commit-details li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2d7a8a;
    font-family: monospace;
    font-size: 14px;
}

.commit-info {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-family: Arial, sans-serif;
}

.commit-info em {
    color: #2d7a8a;
    font-weight: bold;
}

.recent-repos li a {
    color: #2d7a8a;
    text-decoration: none;
    font-weight: bold;
}

.recent-repos li a:hover {
    text-decoration: underline;
}

.repo-lang {
    float: right;
    background: #2d7a8a;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        gap: 15px;
    }

    .stat {
        min-width: 60px;
        padding: 10px;
    }

    .github-search {
        flex-direction: column;
        align-items: center;
    }

    .username-input {
        min-width: unset;
        width: 100%;
    }
}

.youtube-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.youtube-input {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.url-input {
    flex: 2;
    min-width: 300px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #f9f9f9;
    height: 48px;
    box-sizing: border-box;
}

.url-input:focus {
    outline: none;
    border-color: #2d7a8a;
    background-color: white;
}

.download-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2d7a8a, #1e5a6a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e5a6a, #2d7a8a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 122, 138, 0.3);
}

.download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.video-info {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.success-message {
    text-align: center;
}

.success-message h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    margin: 10px 0;
}

.profile-emails {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.profile-emails strong {
    color: #2d7a8a;
}

.quality-select,
.type-select {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    cursor: pointer;
    height: 48px;
    box-sizing: border-box;
    min-width: 120px;
}

.quality-select:focus,
.type-select:focus {
    outline: none;
    border-color: #2d7a8a;
    background-color: white;
}

@media (max-width: 768px) {
    .youtube-input {
        flex-direction: column;
        align-items: stretch;
    }

    .url-input {
        min-width: auto;
        width: 100%;
        flex: none;
    }

    .quality-select,
    .type-select {
        width: 100%;
        min-width: auto;
    }

    .download-btn {
        width: 100%;
    }

    .email-container {
        padding: 0 0.5rem;
    }

    .email-input,
    .email-area {
        font-size: 16px;
    }
}

.error-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    color: #2d7a8a;
    margin: 0;
    font-family: "Slackey", cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message {
    font-size: 32px;
    font-weight: bold;
    color: #1a4a5a;
    margin: 1rem 0;
}

.error-description {
    font-size: 18px;
    color: #666;
    margin: 2rem 0;
    line-height: 1.6;
}

.home-btn {
    display: inline-block;
    background-color: #2d7a8a;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.home-btn:hover {
    background-color: #236169;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 80px;
    }

    .error-message {
        font-size: 24px;
    }

    .error-description {
        font-size: 16px;
        padding: 0 1rem;
    }
}

.gitlab-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gitlab-search {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.gitlab-profile {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.project-stats {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-stats span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.contributions {
    margin-top: 25px;
}

.contributions h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contributions ul {
    list-style: none;
    padding: 0;
}

.contributions li {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #fca326;
}

.contrib-date {
    float: right;
    color: #666;
    font-size: 14px;
}

.contributions a {
    color: #fca326;
    text-decoration: none;
    font-weight: 500;
}

.contributions a:hover {
    text-decoration: underline;
}

.email-badge {
    display: inline-block;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 4px 12px;
    margin: 2px 4px 2px 0;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-badge:hover {
    background-color: #e9ecef;
    border-color: #2d7a8a;
    color: #2d7a8a;
    transform: translateY(-1px);
}

.account-age {
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

.account-age strong {
    color: #2d7a8a;
}

.website {
    margin: 8px 0 !important;
}

.website a {
    color: #2d7a8a;
    text-decoration: none;
    font-size: 14px;
}

.website a:hover {
    text-decoration: underline;
}

.gitlab-profile .error-message {
    text-align: center;
    margin: 20px 0;
}

.gitlab-profile .error-message h3 {
    margin: 0 0 10px 0;
}

.gitlab-profile .error-message p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .gitlab-search {
        flex-direction: column;
        align-items: center;
    }

    .project-stats {
        gap: 10px;
    }

    .contrib-date {
        float: none;
        display: block;
        margin-top: 5px;
    }

    .email-badge {
        font-size: 12px;
        padding: 3px 10px;
        margin: 1px 2px 1px 0;
    }
}

.fight-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.fight-controls {
    max-width: 700px;
    margin: 0 auto 30px;
}

.fight-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.category-option:hover {
    border-color: #2d7a8a;
    background-color: #f8f9fa;
}

.category-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #2d7a8a;
}

.category-option input[type="radio"]:checked + .category-label {
    color: #2d7a8a;
    font-weight: bold;
}

.category-label {
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}

.fight-search {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2d7a8a;
}

.search-btn {
    background-color: #2d7a8a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover:not(:disabled) {
    background-color: #4a9fb0;
    transform: translateY(-2px);
}

.search-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.fight-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.option-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.option-check input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #2d7a8a;
}

.limit-select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.limit-select:focus {
    outline: none;
    border-color: #2d7a8a;
}

.fight-results {
    max-width: 1000px;
    margin: 0 auto;
}

.fight-post {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
}

.fight-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fight-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.fight-title {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    line-height: 1.3;
}

.fight-title:hover {
    color: #2d7a8a;
}

.fight-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.fight-author {
    color: #2d7a8a;
    text-decoration: none;
    font-weight: 500;
}

.fight-author:hover {
    text-decoration: underline;
}

.fight-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.upvotes {
    color: #ff4500;
}

.comments {
    color: #0079d3;
}

.fight-content {
    margin-bottom: 15px;
}

.fight-text {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.fight-media {
    margin-top: 10px;
}

.fight-video {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border-radius: 8px;
}

.fight-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.fight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.fight-tag {
    background: #f0f8ff;
    color: #2d7a8a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e0e8f0;
}

.fight-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #e9ecef;
    color: #2d7a8a;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h3 {
    color: #333;
    margin-bottom: 15px;
}

.error-message {
    background: #fff3f3;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #d63031;
    text-align: center;
}

.results-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.load-more {
    background: #2d7a8a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.load-more:hover {
    background: #236169;
}

.load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .fight-categories {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .category-option {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .fight-search {
        flex-direction: column;
        align-items: center;
    }

    .search-input {
        width: 100%;
        max-width: none;
    }

    .search-btn {
        width: 100%;
        max-width: 300px;
    }

    .fight-options {
        flex-direction: column;
        gap: 10px;
    }

    .fight-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fight-meta {
        width: 100%;
        justify-content: space-between;
    }

    .fight-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
}
