:root {
    --primary-color: #ff7445;
    --primary-hover: #ff5a28;
    --secondary-color: #34a853;
    --danger-color: #ea4335;
    --warning-color: #fbbc04;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --border-color: #dadce0;
    --primary-light: #fff3ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff7445 0%, #ff5a28 100%);
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 200px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(56%) sepia(35%) saturate(2488%) hue-rotate(332deg) brightness(101%) contrast(101%);
}

.navbar-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(56%) sepia(35%) saturate(2488%) hue-rotate(332deg) brightness(101%) contrast(101%);
}

.auth-title {
    text-align: center;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #5f6368;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 116, 69, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 116, 69, 0.3);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e8eaed;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
}

.navbar-brand img {
    height: 40px;
    margin-right: 1rem;
}

.navbar-brand span {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.navbar-nav .user-info {
    font-weight: 500;
    color: var(--dark-color);
}

.navbar-nav a {
    text-decoration: none;
    color: #5f6368;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dashboard-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.dashboard-card p {
    color: #5f6368;
    font-size: 0.95rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0;
}

.welcome-section {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.welcome-section h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.welcome-section p {
    color: #5f6368;
    font-size: 1.1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .navbar-container {
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .hamburger {
        display: flex;
    }
    
    .navbar-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .container {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Badge in Kanban Cards */
.project-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    width: 100%;
    box-shadow: 0 1px 3px rgba(255, 116, 69, 0.3);
    box-sizing: border-box;
}

.project-badge span {
    display: block;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    width: 100%;
}

/* Kanban task card improvements */
.kanban-task-card {
    position: relative;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    cursor: move;
    transition: all 0.2s ease;
}

.kanban-task-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.kanban-task-card h4 {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.kanban-task-actions-unified {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    gap: 8px;
}

.kanban-task-actions-unified .kanban-action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 36px;
    flex: 1;
    max-width: 120px;
}

.kanban-task-actions-unified .kanban-action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kanban-task-actions-unified .kanban-action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

.kanban-task-actions-unified .details-btn {
    background: #6c757d;
}

.kanban-task-actions-unified .details-btn:hover {
    background: #545b62;
}

.kanban-task-actions-unified .assign-btn {
    background: var(--secondary-color);
}

.kanban-task-actions-unified .assign-btn:hover {
    background: #2d8e47;
}