/* ===================================
   Projects Section
   =================================== */

 /* Project Item */
.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-left-color: var(--accent);
}



/* Project Info */
.project-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}



/* Delete Button */
.delete-btn {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    opacity: 0.5;
    transition: all var(--transition-fast);
    border-radius: 6px;
}

.delete-btn:hover {
    opacity: 1;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

/* Archive Button */
.archive-btn {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    opacity: 0.5;
    transition: all var(--transition-fast);
    border-radius: 6px;
}

.archive-btn:hover {
    opacity: 1;
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.1);
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 4px;
}

 /* Add Project Form */
.add-project-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

/* Archived Projects */
#archivedProjectsListTab .project-item {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.02);
}

#archivedProjectsListTab .project-item:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05);
}

/* Inputs & Selects */
input,
select {
    font-family: inherit;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    width: 100%;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.settings-group input[type="number"] {
    width: 80px;
    text-align: center;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Color Input */
.add-project-form input[type="color"] {
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    -webkit-appearance: none;
    border: none;
}

.add-project-form input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.add-project-form input[type="color"]::-webkit-color-swatch {
    border-radius: 50%;
    border: none;
}

.add-project-form input[type="text"] {
    flex: 1;
    min-width: 150px;
    height: 36px;
    padding: 8px 12px;
}

/* Select Custom Arrow */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.65em auto;
    padding-right: 2.5rem;
}

/* Add Button */
.btn-add {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px var(--accent-glow);
}

/* Retro theme project overrides */
[data-theme="retro"] .project-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0;
    border-left: 3px solid transparent;
}

[data-theme="retro"] .project-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
    border-left-color: var(--accent);
}

[data-theme="retro"] #archivedProjectsListTab .project-item {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="retro"] #archivedProjectsListTab .project-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="retro"] input,
[data-theme="retro"] select {
    border-radius: 0;
    border-width: 2px;
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="retro"] input:focus,
[data-theme="retro"] select:focus {
    box-shadow: 2px 2px 0 var(--accent);
}

[data-theme="retro"] .btn-add {
    border-radius: 0;
}

[data-theme="retro"] .btn-add:hover {
    transform: scale(1.05);
}