/* 
    Dark Wulf PMT Styles
    Theme: Dark Mode (Screenshot based)
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #1E1E1E;
    --bg-darker: #121212;
    --bg-panel: #2A2A2A;
    --bg-card: #222222;

    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;

    --accent-red: #E53935;
    --accent-blue: #3949AB;
    --accent-green: #4CAF50;

    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-size: 14px;
}

/* =========================================
   LOGIN PAGE
   ========================================= */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrapper {
    background-color: var(--bg-panel);
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.login-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.logo-text {
    font-size: 24px;
    color: var(--accent-red);
    margin-bottom: 5px;
}

.logo-subtext {
    font-size: 12px;
    color: var(--text-secondary);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px 15px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--accent-red);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    width: 100%;
    background-color: var(--accent-red);
    color: white;
}

.alert-error {
    background-color: rgba(229, 57, 53, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* =========================================
   APP LAYOUT & SIDEBAR
   ========================================= */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background-color: var(--bg-darker);
    border-right: none;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: none;
}

.sidebar-logo {
    width: 55px;
    height: auto;
}

.brand-text h2 {
    font-size: 16px;
    color: var(--text-primary);
}

.brand-text p {
    font-size: 10px;
    color: var(--text-secondary);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    background-color: var(--bg-panel);
    color: var(--text-primary);
    border-left: 3px solid var(--accent-red);
}

/* =========================================
   MAIN CONTENT & HEADER
   ========================================= */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-header {
    height: auto;
    min-height: 70px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 2px solid var(--accent-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: max-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 100;
}

.user-dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background-color: var(--bg-darker);
    color: var(--text-primary);
}

.dropdown-logout {
    color: var(--accent-red);
    border-top: 1px solid var(--border-color);
}

.dropdown-logout:hover {
    background-color: rgba(229, 57, 53, 0.1);
}

/* =========================================
   KANBAN BOARD
   ========================================= */
.board-container {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
}

.board-column {
    flex: 1;
    min-width: 0;
    background-color: var(--bg-panel);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.column-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-darker);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid var(--border-color);
}

.column-header h2 {
    font-size: 14px;
    font-weight: 600;
}

.add-task-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 12px;
}

.add-task-btn:hover {
    text-decoration: underline;
}

.task-list {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* =========================================
   KANBAN CARD
   ========================================= */
.kanban-card {
    background-color: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: flex;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: grab;
    flex-shrink: 0;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-indicator {
    width: 4px;
    background-color: var(--accent-blue);
}

.card-content {
    flex: 1;
    padding: 12px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-type {
    font-size: 10px;
    color: var(--accent-blue);
    font-weight: 600;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
}

.more-options {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: bold;
}

.card-title {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.card-footer-left,
.card-footer-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================================
   MODAL STYLES (Global)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
}

.modal-content {
    background: var(--bg-panel);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 18px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-red);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}