/* Arkiv System v5.0.0 - Simple Styles */

.arkiv-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.arkiv-header {
    background: #3498db;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arkiv-header h1 {
    margin: 0;
    font-size: 24px;
}

.arkiv-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#arkiv-logout-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

#arkiv-logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.arkiv-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.arkiv-folder-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.arkiv-folder-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.arkiv-folder-card p {
    color: #7f8c8d;
    margin: 0 0 15px 0;
}

.arkiv-view-folder,
#arkiv-back-to-folders,
.arkiv-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.arkiv-view-folder:hover,
#arkiv-back-to-folders:hover,
.arkiv-btn:hover {
    background: #2980b9;
}

.arkiv-document-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.arkiv-document-item h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.arkiv-document-item p {
    color: #7f8c8d;
    margin: 0 0 15px 0;
}

.arkiv-document-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.arkiv-document-actions .arkiv-btn {
    font-size: 14px;
}

/* Document Preview */
.arkiv-document-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.arkiv-preview-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.arkiv-preview-close {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.arkiv-preview-close:hover {
    background: #c82333;
}

.arkiv-preview-content {
    background: white;
    padding: 10px;
    border-radius: 4px;
}

/* Breadcrumb */
#arkiv-breadcrumb {
    font-size: 14px;
    color: #6c757d;
}

#arkiv-breadcrumb span {
    font-weight: 500;
    color: #495057;
}

/* Subfolders section */
#arkiv-subfolders-section h3 {
    color: #495057;
    margin-bottom: 15px;
}

#arkiv-back-to-folders {
    margin-bottom: 20px;
}

/* Admin buttons */
.arkiv-btn-admin {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 0 10px;
}

.arkiv-btn-admin:hover {
    background: #218838;
}

.arkiv-btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.arkiv-btn-danger:hover {
    background: #c82333;
}

/* Upload Modal */
.arkiv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arkiv-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.arkiv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.arkiv-modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.arkiv-modal-close {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.arkiv-modal-close:hover {
    background: #c82333;
}

#arkiv-upload-form {
    padding: 20px;
}

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

.arkiv-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.arkiv-form-group input[type="text"],
.arkiv-form-group input[type="file"],
.arkiv-form-group select,
.arkiv-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.arkiv-form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

.arkiv-upload-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #28a745;
    transition: width 0.3s;
    width: 0;
}

#arkiv-upload-progress-text {
    margin-top: 10px;
    text-align: center;
    color: #495057;
}

.arkiv-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.arkiv-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.arkiv-btn-secondary:hover {
    background: #5a6268;
}

.arkiv-btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.arkiv-btn-primary:hover {
    background: #2980b9;
}
