:root {
    --blue: #4169E1;
    --orange: #FF6B35;
    --purple: #9B59B6;
    --green: #27AE60;
    --bg: #F4F6F9;
    --text: #2C3E50;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

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

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    line-height: 1.2;
}

.username {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    white-space: nowrap;
}

.role {
    font-size: 0.875rem;
    color: #95a5a6;
    font-weight: 400;
    white-space: nowrap;
}

.settings-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7F8C8D;
    text-decoration: none;
}

.settings-btn:hover {
    background: #f0f4ff;
    border-color: var(--blue);
    color: var(--blue);
    transform: rotate(90deg);
}

.logout-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7F8C8D;
}

.logout-btn:hover {
    background: #fee;
    border-color: #ff4444;
    color: #ff4444;
    transform: translateX(3px);
}

.logout-btn svg {
    display: block;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
    font-weight: 700;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.tool-card.blue { 
    border-top: 5px solid var(--blue); 
}

.tool-card.orange { 
    border-top: 5px solid var(--orange); 
}

.tool-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 600;
}

.tool-card p {
    color: #7F8C8D;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.4);
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #95A5A6;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}




