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

body.workspace-body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0f0f0f;
    overflow-x: hidden;
}

.workspace-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/assets/images/workspace/workspace-simple.png) no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.bg-switcher {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.bg-btn {
    font-size: 12px;
    width: 32px;
    height: 32px;
}

.bg-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.workspace-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quick-apps h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.app-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.app-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.widgets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.widget {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-header h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.widget-header .btn-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    cursor: pointer;
}

.widget-header .btn-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.widget-body {
    padding: 16px 20px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
    margin: 0 -20px;
    padding: 12px 20px;
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.1);
    margin: 0 -20px;
    padding: 12px 20px;
}

.notif-icon {
    font-size: 20px;
}

.notif-content {
    flex: 1;
}

.notif-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-bottom: 4px;
}

.notif-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-bottom: 4px;
}

.notification-item time {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tool-icon {
    font-size: 20px;
}

.tool-name {
    font-size: 13px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.history-item time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

@media (max-width: 768px) {
    .workspace-container {
        padding: 12px;
    }
    
    .workspace-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .widgets-row {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}