/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    background-color: #ffffff;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
}

.logo i {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-link:hover {
    border-bottom-color: #000000;
}

/* Main Content */
.main {
    flex: 1;
    padding: 60px 0;
}

/* Upload Section */
.upload-section {
    text-align: center;
}

.upload-header h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.upload-header p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 40px;
}

/* Upload Area */
.upload-area {
    border: 1px dashed #cccccc;
    border-radius: 8px;
    padding: 60px 40px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.upload-area:hover {
    border-color: #999999;
    background-color: #f5f5f5;
}

.upload-area.dragover {
    border-color: #000000;
    background-color: #f0f0f0;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-icon {
    font-size: 64px;
    color: #cccccc;
}

.upload-content h2 {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
}

.upload-content p {
    font-size: 15px;
    color: #666666;
}

.upload-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background-color: #f5f5f5;
    border-color: #999999;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
    border-color: #d0d0d0;
}

.btn-text {
    border: none;
    background: none;
    color: #666666;
    padding: 8px 12px;
}

.btn-text:hover {
    background-color: #f5f5f5;
    color: #000000;
}

.btn-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #dc3545;
    color: #ffffff;
}

/* URL Upload */
.url-upload {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.url-label {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

.url-input-group {
    display: flex;
    gap: 10px;
}

.url-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.url-input:focus {
    border-color: #000000;
}

/* Preview Section */
.preview-section {
    max-width: 900px;
    margin: 0 auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.preview-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #000000;
}

.preview-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    background-color: #fafafa;
    text-align: center;
}

.preview-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Share Section */
.share-section {
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
}

.share-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
}

.share-link {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.share-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fafafa;
    color: #000000;
}

/* Social Share */
.social-share {
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.share-label {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-social {
    width: 44px;
    height: 44px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-social:hover {
    background-color: #f5f5f5;
    border-color: #999999;
    transform: translateY(-2px);
}

.btn-facebook:hover {
    background-color: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.btn-twitter:hover {
    background-color: #1da1f2;
    color: #ffffff;
    border-color: #1da1f2;
}

.btn-whatsapp:hover {
    background-color: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.btn-telegram:hover {
    background-color: #0088cc;
    color: #ffffff;
    border-color: #0088cc;
}

.btn-email:hover {
    background-color: #666666;
    color: #ffffff;
    border-color: #666666;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Footer */
.footer {
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    background-color: #fafafa;
    text-align: center;
}

.footer p {
    color: #666666;
    font-size: 14px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #000000;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

.toast.hidden {
    display: none;
}

.toast i {
    font-size: 20px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        gap: 20px;
    }

    .upload-header h1 {
        font-size: 28px;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .upload-buttons {
        flex-direction: column;
        width: 100%;
    }

    .upload-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .url-input-group {
        flex-direction: column;
    }

    .url-input-group .btn {
        width: 100%;
        justify-content: center;
    }

    .share-link {
        flex-direction: column;
    }

    .share-link .btn {
        width: 100%;
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .toast {
        right: 20px;
        left: 20px;
        bottom: 20px;
    }

    .preview-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .upload-header h1 {
        font-size: 24px;
    }

    .upload-content h2 {
        font-size: 20px;
    }

    .social-buttons {
        justify-content: center;
    }
}
