/* Nalero Docs - Security Dashboard Style */
body {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 25%, #0a0a0a 50%, #000000 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    overflow-x: hidden;
}

.docs-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #f0f0f0;
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-logo i {
    font-size: 2rem;
    color: #667eea;
}

.sidebar-nav {
    flex: 1;
    padding: 0 1rem;
}

.nav-item {
    display: block;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    color: #888;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(68, 68, 68, 0.3);
    color: #f0f0f0;
    transform: translateX(5px);
}

.nav-item.active {
    background: #333;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
    padding: 2rem;
    border-bottom: 1px solid #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0f0f0;
    font-size: 1.8rem;
    font-weight: bold;
    border: 2px solid #444;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: #555;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
}

/* Document Cards */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.document-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    padding: 2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.document-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(68, 68, 68, 0.2), transparent);
    transition: left 0.5s ease;
}

.document-card:hover::before {
    left: 100%;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: #444;
}

.document-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-title i {
    color: #667eea;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-docs {
    background: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
    border: 2px solid #444;
    color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-docs:hover {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #555;
    color: #fff;
}

.btn-docs-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.btn-docs-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: #764ba2;
}

.btn-docs-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
}

.btn-docs-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    border-color: #c82333;
}

/* Document Editor */
.editor-container {
    display: flex;
    gap: 2rem;
    height: calc(100vh - 200px);
}

.editor-main {
    flex: 1;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    border: 1px solid #333;
    overflow: hidden;
}

.editor-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-title {
    background: transparent;
    border: none;
    color: #f0f0f0;
    font-size: 1.5rem;
    font-weight: 600;
    outline: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.editor-title:focus {
    background: rgba(68, 68, 68, 0.3);
}

.editor-actions {
    display: flex;
    gap: 1rem;
}

.editor-content {
    padding: 2rem;
    height: calc(100% - 100px);
    overflow-y: auto;
}

.editor-textarea {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 12px;
    color: #f0f0f0;
    padding: 2rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

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

/* Collaboration Sidebar */
.collaboration-sidebar {
    width: 300px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    border: 1px solid #333;
    padding: 1.5rem;
    overflow-y: auto;
}

.collaboration-section {
    margin-bottom: 2rem;
}

.collaboration-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-users {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.active-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #333;
}

.active-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0f0f0;
    font-weight: bold;
    border: 2px solid #51cf66;
}

.active-user-info {
    flex: 1;
}

.active-user-name {
    color: #f0f0f0;
    font-weight: 500;
    font-size: 0.9rem;
}

.active-user-status {
    color: #51cf66;
    font-size: 0.8rem;
}

/* Comments Section */
.comments-section {
    max-height: 400px;
    overflow-y: auto;
}

.comment {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

.comment-author {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.comment-content {
    color: #f0f0f0;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.comment-time {
    color: #888;
    font-size: 0.8rem;
}

.comment-input {
    width: 100%;
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 8px;
    color: #f0f0f0;
    padding: 1rem;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.comment-input:focus {
    border-color: #667eea;
}

/* Share Modal */
.share-modal {
    background: rgba(26, 26, 26, 0.95);
    border-radius: 15px;
    border: 1px solid #333;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.share-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: #f0f0f0;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 8px;
    color: #f0f0f0;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.shared-users {
    margin-top: 2rem;
}

.shared-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #0a0a0a;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid #333;
}

.shared-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shared-user-name {
    color: #f0f0f0;
    font-weight: 500;
}

.shared-user-permissions {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.permission-badge {
    background: #333;
    color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.permission-badge.view {
    background: #28a745;
}

.permission-badge.edit {
    background: #ffc107;
}

.permission-badge.comment {
    background: #17a2b8;
}

/* Share functionality */
.share-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.share-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.share-permissions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-success {
    background-color: #48bb78;
    color: white;
}

.bg-warning {
    background-color: #f6ad55;
    color: #1a202c;
}

.bg-info {
    background-color: #4299e1;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .document-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .editor-container {
        flex-direction: column;
        height: auto;
    }
    
    .collaboration-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 1rem 0;
    }
    
    .sidebar-header {
        padding: 0 1rem 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-nav {
        padding: 0 0.5rem;
    }
    
    .nav-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .document-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { transform: rotate(45deg) translateY(0); }
    100% { transform: rotate(45deg) translateY(100%); }
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: #51cf66;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #f0f0f0;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.text-muted {
    color: #888 !important;
}

.text-success {
    color: #51cf66 !important;
}

.text-primary {
    color: #667eea !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Scrollbar Styling */
.main-content::-webkit-scrollbar,
.collaboration-sidebar::-webkit-scrollbar,
.comments-section::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track,
.collaboration-sidebar::-webkit-scrollbar-track,
.comments-section::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb,
.collaboration-sidebar::-webkit-scrollbar-thumb,
.comments-section::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.main-content::-webkit-scrollbar-thumb:hover,
.collaboration-sidebar::-webkit-scrollbar-thumb:hover,
.comments-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}
