/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

header p {
    opacity: 0.9;
    font-size: 1.1em;
}

.back-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Main content */
main {
    padding: 30px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="file"],
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="file"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Buttons */
.btn-primary,
.btn-copy,
.btn-access,
.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover,
.btn-copy:hover,
.btn-access:hover,
.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-copy {
    padding: 10px 20px;
    margin-left: 10px;
    background: #4CAF50;
}

.btn-copy:hover {
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Result boxes */
.success-box,
.error-box {
    margin-top: 30px;
    padding: 25px;
    border-radius: 8px;
    animation: slideIn 0.4s;
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.error-box {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-box h3,
.error-box h3 {
    margin-bottom: 15px;
}

.expiry-time {
    font-weight: 600;
    color: #667eea;
}

.share-link {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-link input {
    flex: 1;
    background: white;
}

.btn-access {
    display: block;
    margin-top: 15px;
}

/* Content box */
.content-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.file-info h2,
.text-info h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.info-row .label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
}

.info-row .value {
    color: #333;
}

.text-content {
    margin: 20px 0;
}

.text-content textarea {
    background: white;
    min-height: 200px;
    font-family: 'Courier New', monospace;
}

.share-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.share-section h3 {
    margin-bottom: 15px;
    color: #555;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.warning-box p {
    color: #856404;
    margin: 0;
}

/* Footer */
footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 8px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    main {
        padding: 20px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
    }

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

    .btn-copy {
        margin-left: 0;
        width: 100%;
    }
}
