/* Management Toolkit Styles */
:root {
  --primary-color: #2c3e50;
  --primary-light: #34495e;
  --primary-dark: #1a252f;
  --accent-color: #e67e22;
  --secondary-color: #3498db;
  --shadow-color: rgba(52, 73, 94, 0.15);
  --glow-color: rgba(52, 152, 219, 0.2);
  --light-grey: #ecf0f1;
  --dark-grey: #2c3e50;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #4a6741 100%);
  --gradient-card: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
    color: #f5f5f5;
}

#particle-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Main Toolkit Styles */
.toolkit-container {
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h1 {
    font-size: 3.5rem;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(52, 152, 219, 0.4), 0 0 30px rgba(52, 152, 219, 0.2);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.3rem;
    color: #bdc3c7;
    margin-top: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.perspective-container {
    perspective: 1200px;
    height: 240px;
}

.mgmt-tool {
    height: 100%;
    width: 100%;
    border-radius: 20px;
    background: var(--gradient-card);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mgmt-tool:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.tool-icon {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.tool-description {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    max-width: 200px;
}

.footer {
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    z-index: 10;
}

.glow-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-1, .glow-2 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(100px);
}

.glow-1 {
    top: 10%;
    left: 15%;
    width: 350px;
    height: 350px;
    background-color: rgba(52, 152, 219, 0.4);
    animation: moveGlow 20s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: 15%;
    right: 10%;
    width: 400px;
    height: 400px;
    background-color: rgba(230, 126, 34, 0.3);
    animation: moveGlow 25s infinite alternate-reverse ease-in-out;
}

@keyframes moveGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 40px) scale(1.1); }
}

/* User Profile */
.user-profile {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 20px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
    color: white;
}

.status-indicator {
    display: flex;
    align-items: center;
}

.status-text {
    font-size: 12px;
    color: var(--success);
    margin-right: 8px;
    font-weight: 500;
}

.status-dot {
    color: var(--success);
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.search-box {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-container i {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

#toolSearch {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 12px 12px 45px;
    color: white;
    font-size: 16px;
    border-radius: 15px;
    transition: background 0.3s ease;
}

#toolSearch:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

#toolSearch::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.search-tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.search-tag.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Tab Styling */
.tabs-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.tab {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border: 1px solid rgba(52, 152, 219, 0.5);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: grid;
    opacity: 1;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Effects */
.perspective-container {
    transition: all 0.5s ease, transform 0.3s ease;
}

.perspective-container.filtered-out {
    opacity: 0.2;
    transform: scale(0.9);
    pointer-events: none;
}

.perspective-container.filtered-in {
    animation: pulseHighlight 0.5s;
}

@keyframes pulseHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Tab Results Indicator */
.tab.has-results {
    position: relative;
    animation: tabPulse 2s infinite;
}

.tab.has-results::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}

@keyframes tabPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Responsive Design */
@media (max-width: 1100px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .grid-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .perspective-container {
        height: 200px;
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 280px;
    }
    
    .user-profile {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
    }
    
    .user-name {
        display: none;
    }
    
    .tabs-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 700px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .perspective-container {
        height: 180px;
        flex: 1 1 100%;
    }
    
    .search-container {
        padding: 0 10px;
    }
}

/* Card Link Styling */
.card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link:visited {
    color: inherit;
}

/* Ensure card links don't interfere with hover effects */
.card-link .mgmt-tool {
    height: 100%;
}

/* Logout Button Styling */
.logout-btn {
    display: flex;
    align-items: center;
    margin-left: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: white !important;
    text-decoration: none !important;
}

.logout-btn:visited {
    color: white !important;
    text-decoration: none !important;
}

.logout-text {
    margin-right: 8px;
    color: white;
}

.logout-btn i {
    color: white;
    font-size: 14px;
} 