/* SecureShare Main Stylesheet */

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

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

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #333;
    font-size: 2rem;
    font-weight: 300;
    margin-top: 10px;
}

.logo .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.success-message, .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    animation: slideInUp 0.3s ease;
}

.success-message h3, .success-message h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.url-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border: 1px solid #e1e5e9;
    max-height: 100px;
    overflow-y: auto;
    user-select: text;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.copy-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.delete-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.copy-btn:hover, .delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

input[type="text"], input[type="password"], input[type="file"], textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.checkbox-container {
    margin: 20px 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.checkbox-group:hover {
    background: rgba(102, 126, 234, 0.05);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.expiration-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.expiration-container.active {
    max-height: 100px;
    opacity: 1;
    margin-top: 15px;
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

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

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

.download-info {
    text-align: center;
    padding: 20px 0;
}

.download-info h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.file-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.file-info p {
    margin-bottom: 8px;
}

.file-info strong {
    color: #555;
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-display {
    padding: 12px 16px;
    border: 2px dashed #e1e5e9;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
    cursor: pointer;
}

.file-input-display:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-input-display.has-file {
    border-style: solid;
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.security-notice {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #004085;
}

.security-notice strong {
    color: #003366;
}

.password-strength {
    margin-top: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: none;
}

.password-strength.weak {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.password-strength.medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.password-strength.strong {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-requirements {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.requirement {
    display: block;
    margin: 2px 0;
}

.requirement.met {
    color: #28a745;
}

.requirement.met::before {
    content: "✓ ";
}

.requirement:not(.met)::before {
    content: "✗ ";
    color: #dc3545;
}

/* Toast notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 1001;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    word-wrap: break-word;
}

/* Component-specific styles */
.success-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.success-title {
    margin: 0;
}

.timestamp {
    color: #666;
}

.file-label {
    margin-bottom: 10px;
}

.url-label {
    margin-bottom: 5px;
}

.url-label-delete {
    margin-bottom: 5px;
    margin-top: 15px;
}

/* Text area styles */
.content-textarea {
    min-height: 200px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    cursor: text;
}

/* Delete page styles */
.delete-warning {
    text-align: center;
}

.delete-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.delete-buttons form {
    margin: 0;
    display: flex;
}

.delete-btn-confirm, .delete-btn-cancel {
    min-width: 160px;
    padding: 14px 32px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.delete-btn-confirm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.delete-btn-cancel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.delete-btn-confirm:hover, .delete-btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Password page styles */
.password-container {
    position: relative;
}

.password-label {
    text-align: center;
    display: block;
}

.password-input-wrapper {
    position: relative;
}

.password-input-centered {
    text-align: center;
    padding-right: 45px;
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
}

.attempts-warning {
    display: none;
    margin-top: 10px;
}

/* Download page styles */
.download-notice {
    margin-bottom: 20px;
    text-align: center;
}

.download-info-text {
    color: #666;
}

.download-expiry-notice {
    margin-top: 15px;
    text-align: center;
}

.download-expiry-text {
    color: #666;
}

.integrity-verified {
    color: #28a745;
}

/* Button variations */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    width: auto;
    padding: 12px 24px;
    display: block;
    margin: 0 auto;
}

.btn-reset {
    margin-top: 20px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    font-size: 14px;
    padding: 10px;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-download-text {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    font-size: 14px;
    padding: 10px;
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: #666; }
.text-success { color: #28a745; }
.text-dark { color: #333; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.1rem; }

/* Spacing utilities */
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

/* Layout utilities */
.w-auto { width: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Other component styles */
.char-counter {
    text-align: right;
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

.file-input-subtitle {
    color: #666;
}

.error-title {
    margin-bottom: 15px;
}

.error-message {
    font-size: 1.1rem;
}

.inline-list {
    text-align: left;
    display: inline-block;
    color: #666;
}

.security-notice-mt {
    margin-top: 30px;
    text-align: center;
}

/* Animation style */
.slide-in-up {
    animation: slideInUp 0.3s ease;
}

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

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

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

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

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 30px 20px;
        max-width: none;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}
