@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    overflow: -moz-scrollbars-none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Landing Page */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: -1;
    transition: all 0.3s ease;
}

.btn:hover::before {
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.btn-small {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
}

.delete-btn {
    background: rgba(220, 38, 38, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: white;
}

.delete-btn:hover {
    background: rgba(220, 38, 38, 0.5);
    border-color: rgba(220, 38, 38, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    min-height: 85vh;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #a0a0a0;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.95rem;
    color: #808080;
}

/* Auth Container */
.auth-container {
    display: none;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-container.active {
    display: flex;
}

.auth-box {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #808080;
    font-size: 0.95rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #808080;
    font-size: 0.95rem;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* App Container */
.app-container {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

.app-container.active {
    display: flex;
}

.app-header {
    padding: 1.5rem 2rem;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.user-name {
    flex: 1;
    font-weight: 500;
}

/* Dashboard Section */
.dashboard-section {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #808080;
    font-size: 1.1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #808080;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.recent-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 1.8rem;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: #764ba2;
}

.recent-boards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.quick-actions {
    margin-top: 3rem;
}

.quick-actions h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.05);
}

.action-icon {
    font-size: 3rem;
}

.action-text {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Boards Section */
.boards-section {
    padding: 2rem 1.5rem;
}

.boards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.boards-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.board-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    text-decoration: none;
    color: inherit;
    display: block;
}

.board-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.board-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

.board-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.board-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.add-board-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
    gap: 1rem;
}

.add-board-card:hover {
    border-color: rgba(102, 126, 234, 0.5);
    color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.05);
}

.add-icon {
    font-size: 3rem;
}

/* Activity Section */
.activity-section {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.activity-header {
    margin-bottom: 3rem;
}

.activity-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.activity-icon {
    font-size: 2rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-meta {
    color: #808080;
    font-size: 0.9rem;
}

/* Profile Section */
.profile-section {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    margin-bottom: 3rem;
}

.profile-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: #808080;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
}

.action-list {
    display: flex;
    flex-direction: column;
}

/* Board View */
.board-view {
    display: none;
    flex-direction: column;
    min-height: 100vh;
}

.board-view.active {
    display: flex;
}

.board-header {
    padding: 1.5rem 2rem;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.board-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}

.board-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lists-container {
    padding: 2rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    flex: 1;
    align-items: flex-start;
}

.list {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    min-width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.list.dragging {
    opacity: 0.5;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: move;
    gap: 0.5rem;
}

.list-title {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.delete-list-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ff6b6b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
    backdrop-filter: blur(10px);
}

.delete-list-btn:hover {
    background: rgba(220, 38, 38, 0.4);
    border-color: rgba(220, 38, 38, 0.5);
    transform: scale(1.1);
}

.list-cards {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 50px;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    cursor: move;
    transition: all 0.2s ease;
    position: relative;
}

.card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.5);
}

.card:hover .delete-card-btn {
    opacity: 1;
}

.card.dragging {
    opacity: 0.5;
}

.card-content {
    padding-right: 30px;
}

.delete-card-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ff6b6b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.delete-card-btn:hover {
    background: rgba(220, 38, 38, 0.4);
    border-color: rgba(220, 38, 38, 0.5);
    transform: scale(1.1);
}

.add-card-btn {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.add-card-btn:hover {
    border-color: rgba(102, 126, 234, 0.5);
    color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.05);
}

.add-list {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    min-width: 300px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.add-list:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.25s ease;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #808080;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.error-message {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #ff6b6b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    color: #808080;
    padding: 2rem;
}

.empty-state {
    text-align: center;
    color: #808080;
    padding: 3rem 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 1.5rem 1.5rem;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-actions {
        width: 100%;
        order: 2;
        margin-top: 1rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .boards-section,
    .dashboard-section,
    .activity-section,
    .profile-section {
        padding: 2rem 1rem;
    }

    .boards-grid,
    .recent-boards {
        grid-template-columns: 1fr;
    }

    .lists-container {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .list {
        min-width: 280px;
        max-width: 280px;
    }

    .modal-content,
    .auth-box {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .delete-card-btn {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-actions .btn {
        flex: 1;
        text-align: center;
    }

    .board-actions {
        width: 100%;
    }

    .board-actions .btn {
        flex: 1;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .user-info {
        width: 100%;
        order: 2;
    }

    .hero .btn {
        width: 100%;
        max-width: 300px;
    }
}