/* SmartKit File Share CSS */

.file-share-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.fs-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.fs-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.fs-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-color);
    margin-bottom: 1.5rem;
}

.fs-dropzone:hover, .fs-dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.fs-file-list {
    text-align: left;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.fs-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.fs-file-item:last-child {
    border-bottom: none;
}

.fs-file-info {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.fs-file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 1rem;
    font-weight: 500;
}

.fs-file-size {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.fs-file-remove {
    color: #dc3545;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
}

.fs-progress-container {
    margin-top: 1.5rem;
    display: none;
}

.fs-progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.fs-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.2s ease;
}

.fs-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.fs-code-display {
    font-size: 3rem;
    letter-spacing: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.fs-qr-container {
    margin: 1.5rem auto;
    width: 200px;
    height: 200px;
    background: white;
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fs-qr-container img {
    width: 100%;
    height: 100%;
}

.fs-status-box {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.fs-status-waiting {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid #ffeeba;
}

.fs-status-connected {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fs-status-error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Share URL Box */
.fs-share-url-box {
    display: flex;
    margin-top: 1rem;
}

.fs-share-url-box input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.fs-share-url-box button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Dashboard Table */
.fs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.fs-table th, .fs-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.fs-table th {
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .fs-table thead {
        display: none;
    }
    
    .fs-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        padding: 0.5rem;
    }
    
    .fs-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        padding: 0.5rem;
    }
    
    .fs-table td:last-child {
        border-bottom: none;
    }
    
    .fs-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
    }
}
