/* Copyright (c) 2024-2025 Accenture, All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

:root {
    /* Light theme */
    --bg-color-light: #ffffff;
    --card-bg-light: #f8f9fa;
    --border-color-light: #e9ecef;
    --text-color-light: #212529;
    --text-secondary-light: #495057;

    /* Dark theme */
    --bg-color-dark: #1a0b2e;
    --card-bg-dark: #2d1646;
    --border-color-dark: #4a2370;
    --text-color-dark: #f8f9fa;
    --text-secondary-dark: #e9ecef;

    /* Common colors */
    --purple-primary: #9333ea;
    --purple-hover: #7e22ce;
    --purple-light: #c084fc;
    --green-primary: #22c55e;
    --green-hover: #16a34a;
    --green-light: #86efac;
    --yellow-primary: #eab308;
    --yellow-hover: #ca8a04;
    --yellow-light: #fde047;
    --red-primary: #ef4444;
    --red-hover: #dc2626;
    --red-light: #fca5a5;
    --blue-primary: #3b82f6;
    --blue-hover: #2563eb;
    --blue-light: #93c5fd;
}

/* Theme specific styles */
body {
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
}

body.dark {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--blue-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-logo {
	display: flex;
    width: 160px;
    height: 100px;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
}


.logo h1 {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.logo p {
    color: var(--text-secondary-light);
    font-size: 14px;
}

.collab-container {
	display:flex;
}

.collab-container div:nth-child(even){
	margin-left: 16px;
	margin-right:16px;
}

.collab-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

.collab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
}

/* Main content */
.content {
    flex: 1;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.app-section {
    margin-bottom: 40px;
}

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

/* App card styles */
.app-card {
    background-color: var(--card-bg-light);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;    
	display: flex;
    flex-direction: column;
    justify-content: space-around;
}

body.dark .app-card {
    background-color: var(--card-bg-dark);
    border-color: var(--border-color-dark);
    color: var(--text-color-dark);
}

body.dark .app-description {
    color: var(--text-secondary-dark);
}

body.dark .app-updated {
    color: var(--text-secondary-dark);
}

body.dark .seperator{
    border-color: var(--border-color-dark);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.admin-card {
    border-left: 4px solid var(--purple-primary);
}

.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.app-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    border-radius: 6px;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
}

.icon-bg {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--blue-light);
    font-size: 24px;
}

.admin-icon-bg {
    background-color: rgba(147, 51, 234, 0.2);
    color: var(--purple-light);
    font-size: 24px;
}

.app-title {
    font-size: 18px;
    font-weight: 600;
}

.app-description {
    color: var(--text-secondary-light);
    margin-bottom: 24px;
    font-size: 14px;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-updated {
    font-size: 12px;
    color: var(--text-secondary-light);
}

.app-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--green-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.app-button:hover {
    background-color: var(--green-hover);
    transform: translateY(-1px);
}

.admin-button {
    background-color: var(--purple-primary);
}

.admin-button:hover {
    background-color: var(--purple-hover);
}

.app-card:nth-child(3n+1) {
    border-left: 4px solid var(--blue-primary);
}

.app-card:nth-child(3n+2) {
    border-left: 4px solid var(--yellow-primary);
}

.app-card:nth-child(3n+3) {
    border-left: 4px solid var(--red-primary);
}

.app-button i {
    margin-left: 6px;
}

.seperator {
	border: 2px solid var(--border-color-light);
	border-radius: 40px;
	margin-left:8px;
	margin-right:8px;
	
}

/* Footer styles */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: var(--text-secondary-light);
    font-size: 14px;
    border-top: 1px solid var(--border-color-light);
}

/* Responsive styles */
@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .collab-note {
        align-self: flex-start;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-card {
        padding: 16px;
    }

    .app-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .app-button {
        width: 100%;
        justify-content: center;
    }
}