/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #F8F9FA;
    min-height: 100vh;
    padding: 24px;
    direction: rtl;
}

.page-container {
    width: 800px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 8px;
}

.page-header .subtitle {
    font-size: 16px;
    color: #475467;
}

/* Section Spacing */
.section-spacing {
    margin-bottom: 24px;
}

.section-spacing:last-child {
    margin-bottom: 0;
}

/* Storage Card */
.storage-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.storage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.storage-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #101828;
    margin: 0;
}

.storage-title {
    font-size: 14px;
    color: #475467;
}

.storage-percent {
    font-size: 16px;
    font-weight: 500;
    color: #101828;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #F2F4F7;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, 
        #53D769 0%, 
        #4EBBFD 100%
    );
    border-radius: 32px;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0) 100%
    );
}

.storage-info {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.storage-icon {
    width: 40px;
    height: 40px;
    background: #EFF8FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storage-icon i {
    color: #2196F3;
    font-size: 20px;
}

.storage-text {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #475467;
    font-size: 14px;
}


/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.header-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: #666;
}

/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Component */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.card-body {
    padding: 20px;
}

/* File Upload Area */
.file-upload-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.file-status {
    font-size: 14px;
    color: #666;
}

.file-size {
    color: #888;
    font-size: 12px;
}

.upload-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-upload {
    background-color: #007bff;
    color: white;
    width: 100%;
    padding: 10px;
}

.btn-upload:hover {
    background-color: #0069d9;
}

.btn-upload:disabled {
    background-color: #2196F3;
    cursor: not-allowed;
}



/* Recent Files Section */
.recent-files {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.recent-files h2 {
    font-size: 18px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 24px;
}

/* Files Table */
.files-table {
    width: 100%;
    border-collapse: collapse;
}

.files-table th {
    padding: 12px;
    text-align: right;
    color: #101828;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #EAECF0;
}

.files-table td {
    padding: 16px 12px;
    text-align: right;
    color: #475467;
    font-size: 14px;
    border-bottom: 1px solid #EAECF0;
}

.files-table tr:last-child td {
    border-bottom: none;
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.action-btn {
    background: none;
    border: none;
    padding: 0;
    color: #475467;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    color: #101828;
}

.action-btn:hover {
    background-color: #f0f0f0;
}

.delete-btn:hover {
    color: #dc3545;
}

.download-btn:hover {
    color: #28a745;
}

.share-btn:hover {
    color: #007bff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .file-upload-area {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .upload-actions {
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .files-table th, .files-table td {
        padding: 10px;
    }
}
