* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.side-decoration {
    position: fixed;
    top: 0;
    height: 100%;
    width: 150px;
    z-index: -1;
    opacity: 0.1;
}

.corner-decoration {
    position: fixed;
    width: 300px;
    height: 300px;
    z-index: -1;
    opacity: 0.05;
}

.corner-decoration.top-left {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, #ff073a, transparent 70%);
}

.corner-decoration.bottom-right {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, #ff073a, transparent 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #ff073a;
    text-shadow: 0 0 10px rgba(255, 7, 58, 0.7);
    animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 7, 58, 0.7);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 7, 58, 0.9), 0 0 30px rgba(255, 7, 58, 0.6);
    }
}

.logo h1 {
    font-family: 'Impact', sans-serif;
    font-size: 4rem;
    margin-bottom: 30px;
    color: #ff073a;
    text-shadow: 0 0 10px rgba(255, 7, 58, 0.7);
    letter-spacing: 3px;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px rgba(255, 7, 58, 0.7);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 7, 58, 0.9), 0 0 30px rgba(255, 7, 58, 0.6);
    }
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 15px;
    color: #e6e6e6;
}

.project-description {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    margin-top: 20px;
    border: 1px solid rgba(255, 7, 58, 0.3);
    animation: fadeInScale 1.5s ease-out 0.8s both;
    border-left: 4px solid #ff073a;
}

.project-description p {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    color: #b8c2cc;
    line-height: 1.5;
}

.external-link {
    color: #ff073a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 7, 58, 0.3);
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.external-link:hover {
    background: rgba(255, 7, 58, 0.2);
    border-bottom-color: #ff073a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 7, 58, 0.3);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Upload Area */
.upload-area {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 3px dashed rgba(255, 7, 58, 0.3);
    cursor: pointer;
    border-left: 4px solid #ff073a;
}

.upload-area:hover {
    border-color: #ff073a;
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(255, 7, 58, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.upload-area.dragover {
    border-color: #ff073a;
    background: rgba(255, 7, 58, 0.1);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-icon {
    font-size: 4rem;
    color: #ff073a;
    margin-bottom: 10px;
    animation: iconFloat 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 7, 58, 0.7);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.upload-area p {
    color: #b8c2cc;
    font-size: 1rem;
    margin-bottom: 20px;
}

.upload-btn {
    position: relative;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff073a 0%, #ff3860 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 7, 58, 0.4);
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 7, 58, 0.6);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-btn:disabled {
    background: linear-gradient(45deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.upload-btn:disabled:hover {
    transform: none;
}

.upload-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s;
}

.upload-btn:hover::after {
    left: 100%;
}

/* File List */
.file-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-left: 4px solid #ff073a;
}

.file-list h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ff073a;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #ff073a;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.file-icon {
    font-size: 1.5rem;
    color: #ff073a;
    min-width: 30px;
    transition: all 0.3s ease;
}

.file-icon:hover {
    color: #ff3860;
    transform: scale(1.1);
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-name {
    font-weight: 500;
    color: #fff;
}

.file-size {
    font-size: 0.9rem;
    color: #b8c2cc;
}

.file-link {
    font-size: 0.9rem;
    color: #ff073a;
    text-decoration: none;
    word-break: break-all;
}

.file-link:hover {
    text-decoration: underline;
    color: #ff3860;
}

/* Progress Bar */
.upload-progress {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #ff073a;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff073a 0%, #ff3860 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
    animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.progress-text {
    font-weight: 600;
    color: #fff;
    min-width: 40px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(255, 7, 58, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 7, 58, 0.3);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff073a;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #b8c2cc;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 7, 58, 0.2);
    color: #ff073a;
}

.modal-body {
    padding: 30px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ff073a;
}

.file-info i {
    font-size: 2rem;
    color: #ff073a;
}

.file-info span {
    font-weight: 500;
    color: rgba(255, 7, 58, 0.3);
    word-break: break-all;
}

.link-container {
    margin-bottom: 25px;
}

.link-container label {
    display: block;
    font-weight: 600;
    color: rgba(255, 7, 58, 0.3);
    margin-bottom: 10px;
}

.link-input-group {
    display: flex;
    gap: 10px;
}

.link-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(255, 7, 58, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.copy-btn {
    background: linear-gradient(45deg, #ff073a 0%, #ff3860 100%);
    color: rgba(255, 7, 58, 0.3);
    border: none;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 7, 58, 0.3);
    background: linear-gradient(45deg, #ff3860 0%, #ff073a 100%);
}

.preview-container {
    margin-top: 20px;
}

.preview-container label {
    display: block;
    font-weight: 600;
    color: rgba(255, 7, 58, 0.3);
    margin-bottom: 10px;
}

.preview {
    border-radius: 10px;
    overflow: hidden;
    max-height: 300px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 7, 58, 0.3);
}

.preview img, .preview video {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.preview audio {
    width: 100%;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #6c757d;
    opacity: 0.8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .side-decoration {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .logo h1 {
        font-size: 2.8rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header, .modal-body {
        padding: 20px;
    }
    
    .link-input-group {
        flex-direction: column;
    }
    
    .copy-btn {
        align-self: flex-start;
    }
    
    .side-decoration, .corner-decoration {
        display: none;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Animation */
.success-animation {
    color: #28a745;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* History Styles */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff416c;
}

.history-header h4 {
    color: #ff416c;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-history-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-history-btn:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.history-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-left: 4px solid #ff416c;
}

.history-item:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-left-color: #dc2626;
}

.file-date {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.copy-link-btn {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.copy-link-btn:hover {
    background: linear-gradient(135deg, #ff4b2b 0%, #dc2626 100%);
    transform: scale(1.05);
}

/* Entry Animations */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    animation: slideInFromTop 1s ease-out;
}

.upload-area {
    animation: fadeInScale 1.2s ease-out 0.3s both;
}

.file-list {
    animation: slideInFromBottom 1s ease-out 0.6s both;
}

/* Notification Animations */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Logo Icon Hover Effect */
#logoIcon {
    transition: all 0.3s ease;
}

#logoIcon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}
