* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Onest', sans-serif;
    background: #0d0d0d;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    padding: 30px 0;
}

.logo {
    width: 64px;
    height: 64px;
}

.title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
}

.upload-section {
    margin-bottom: 50px;
}

.drop-zone {
    border: 2px dashed #2a2a2a;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: #151515;
    margin-bottom: 20px;
}

.drop-zone:hover {
    border-color: #ffffff;
    background: #1a1a1a;
}

.drop-zone.dragover {
    border-color: #ffffff;
    background: #1a1a1a;
    transform: scale(1.02);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #555;
    margin-bottom: 20px;
}

.drop-text {
    font-size: 20px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.drop-limit {
    font-size: 14px;
    color: #888;
}

.upload-btn {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    color: #0d0d0d;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Onest', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.upload-btn:hover {
    background-color: #e0e0e0;
}

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

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.history-section {
    margin-bottom: 50px;
}

.history-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.table-container {
    background: #151515;
    border: 2px solid #2a2a2a;
    border-radius: 16px;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: #1a1a1a;
}

.history-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.history-table td {
    padding: 16px;
    border-top: 1px solid #2a2a2a;
}

.history-table tbody tr {
    transition: background 0.2s ease-in-out;
}

.history-table tbody tr:hover {
    background: #1a1a1a;
}

.file-name {
    color: #e0e0e0;
    font-weight: 500;
    word-break: break-word;
}

.file-date {
    color: #888;
    font-size: 14px;
    white-space: nowrap;
}

.file-link {
    color: #ffffff;
    text-decoration: none;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
}

.copy-btn-table {
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #888;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn-table:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.copy-btn-table svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    display: block;
}

.delete-btn-table {
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: #888;
    margin-left: 8px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-btn-table:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.delete-btn-table svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    display: block;
}

.actions-cell {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


.footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid #2a2a2a;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease-in-out;
    border-bottom: 1px dashed currentColor;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-link:hover::after {
    width: 100%;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    color: #0d0d0d;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast span {
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .history-table th:nth-child(3),
    .history-table td:nth-child(3) {
        max-width: 200px;
    }

    .file-link {
        font-size: 12px;
    }
}

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

    .title {
        font-size: 32px;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }

    .drop-text {
        font-size: 16px;
    }

    .footer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .history-table {
        font-size: 13px;
    }

    .history-table th,
    .history-table td {
        padding: 12px 8px;
    }

    .history-table th {
        font-size: 11px;
    }

    .file-name {
        font-size: 13px;
    }

    .file-date {
        font-size: 12px;
    }

    .file-link {
        font-size: 11px;
        max-width: 150px;
        display: inline-block;
    }

    .copy-btn-table,
    .delete-btn-table {
        padding: 6px 8px;
    }

    .copy-btn-table svg,
    .delete-btn-table svg {
        width: 14px;
        height: 14px;
    }

    .delete-btn-table {
        margin-left: 4px;
    }

    .actions-cell {
        gap: 2px;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        font-size: 12px;
        padding: 12px 16px;
    }

    .toast span {
        font-size: 14px;
    }

    .table-container {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }

    .header {
        margin-bottom: 30px;
        padding: 20px 0;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    .title {
        font-size: 24px;
    }

    .upload-section {
        margin-bottom: 30px;
    }

    .drop-zone {
        padding: 30px 15px;
        margin-bottom: 12px;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .drop-text {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .drop-limit {
        font-size: 12px;
    }

    .upload-btn {
        padding: 12px;
        font-size: 14px;
    }

    .history-section {
        margin-bottom: 30px;
    }

    .history-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .table-container {
        border-radius: 12px;
    }

    .history-table {
        font-size: 12px;
    }

    .history-table th,
    .history-table td {
        padding: 10px 6px;
    }

    .history-table th {
        font-size: 10px;
        letter-spacing: 0px;
    }

    .file-name {
        font-size: 12px;
    }

    .file-date {
        font-size: 11px;
    }

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

    .copy-btn-table,
    .delete-btn-table {
        padding: 4px 6px;
    }

    .copy-btn-table svg,
    .delete-btn-table svg {
        width: 12px;
        height: 12px;
    }

    .delete-btn-table {
        margin-left: 2px;
    }

    .actions-cell {
        gap: 1px;
    }
}

    .footer {
        gap: 15px;
        padding: 20px 0;
    }

    .footer-link {
        font-size: 12px;
    }

    .toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 10px 12px;
    }

    .toast span {
        font-size: 11px;
    }

@media (max-width: 360px) {
    .title {
        font-size: 20px;
    }

    .history-table th,
    .history-table td {
        padding: 8px 4px;
    }

    .history-table th {
        font-size: 9px;
    }

    .file-link {
        max-width: 90px;
        font-size: 9px;
    }

    .copy-btn-table,
    .delete-btn-table {
        padding: 3px 5px;
    }
}
