html{
    margin: 0 !important;
}
#wpadminbar{
    display: none !important;
}
/* Header */
.taskpress-icon{
    fill: #fff;
    width: 30px;
    height: 30px;
}
.taskpress-header {
    background: #0079bf;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.taskpress-header .taskpress-header-title a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.4rem;
    margin: 0;
}
.taskpress-header .taskpress-header-text{
    color: #fff;
}

/* Header Navigation Menu */
.taskpress-header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    margin: 0 2rem;
}

.taskpress-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.taskpress-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.taskpress-nav-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Search Container */
.taskpress-search-container {
    position: relative;
    flex: 0 1 250px;
}

.taskpress-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.taskpress-search-wrapper .taskpress-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.taskpress-search-wrapper .taskpress-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.taskpress-search-wrapper .taskpress-search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.taskpress-search-wrapper .taskpress-search-icon {
    position: absolute;
    left: 0.5rem;
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

/* Search Results Dropdown */
.taskpress-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dfe1e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}

.taskpress-search-results .no-card-found.empty {
    padding: 1rem;
    text-align: center;
    color: #8590a2;
    font-size: 0.9rem;
}

.taskpress-search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f4f8;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.taskpress-search-result-item .taskpress-search-result-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.taskpress-search-result-item:last-child {
    border-bottom: none;
}

.taskpress-search-result-item:hover {
    background-color: #f0f4f8;
}

.taskpress-search-result-content {
    flex: 1;
    min-width: 0;
}

.taskpress-search-result-title {
    font-weight: 500;
    color: #172b4d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskpress-search-result-list {
    font-size: 0.8rem;
    color: #8590a2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskpress-search-result-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.taskpress-search-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.taskpress-search-badge-archived {
    background-color: #f0f4f8;
    color: #626f86;
}

.taskpress-search-badge-list-archived {
    background-color: #fff7d6;
    color: #974f0c;
}

.taskpress-search-result-item.archived {
    opacity: 0.7;
}

/* Profile Dropdown */
.taskpress-profile {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.taskpress-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}

.taskpress-dropdown {
    position: absolute;
    right: 0;
    top: 60px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    width: 180px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.taskpress-dropdown a {
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #333;
    padding: 0.75rem 1rem;
    transition: background 0.2s;
}
.taskpress-dropdown a svg{
    fill: #333;
    width: 16px;
    height: 16px;
}
.taskpress-dropdown a:hover {
    background: #f1f5ff;
}

.taskpress-profile.active .taskpress-dropdown {
    display: flex;
}

/* --- Base Button Style --- */
.taskpress-board-form .button,
.taskpress-board-form .button-primary {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}
/* CSS Button */
/* Source: https://getcssscan.com/css-buttons-examples */
.button-1 {
  background-color: #EA4C89;
  border-radius: 8px;
  border-style: none;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  line-height: 20px;
  list-style: none;
  margin: 0;
  outline: none;
  padding: 10px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color 100ms;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-1:hover,
.button-1:focus {
  background-color: #F082AC;
}
.button-3 {
  appearance: none;
  background-color: #2ea44f;
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
}

.button-3:focus:not(:focus-visible):not(.focus-visible) {
  box-shadow: none;
  outline: none;
}

.button-3:hover {
  background-color: #2c974b;
}

.button-3:focus {
  box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
  outline: none;
}

.button-3:disabled {
  background-color: #94d3a2;
  border-color: rgba(27, 31, 35, .1);
  color: rgba(255, 255, 255, .8);
  cursor: default;
}

.button-3:active {
  background-color: #298e46;
  box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}
[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover{
    color: inherit;
    background-color: transparent;
}
/* --- Primary Button --- */
.taskpress-board-form .button-primary {
    background-color: #1e73be;
    color: #fff;
    box-shadow: 0 3px 8px rgba(30, 115, 190, 0.2);
}

.taskpress-board-form .button-primary:hover {
    background-color: #155d97;
    box-shadow: 0 4px 12px rgba(30, 115, 190, 0.35);
}

.taskpress-board-form .button-primary:active {
    background-color: #104b7b;
    transform: scale(0.98);
}

.taskpress-board-form .button-primary:focus {
    outline: 2px solid #66b3ff;
    outline-offset: 2px;
}

/* --- Secondary Button --- */
.taskpress-board-form .button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}

.taskpress-board-form .button:hover {
    background-color: #e6e6e6;
    border-color: #bbb;
}

.taskpress-board-form .button:active {
    background-color: #dcdcdc;
    transform: scale(0.98);
}

/* ===== Select2 User Search Styling ===== */

/* Container and wrapper styling */
.taskpress-select2-users {
    width: 100% !important;
}

.select2-container--taskpress {
    width: 100% !important;
}

.select2-container--taskpress.select2-container--focus .select2-selection {
    border-color: #0079bf !important;
    box-shadow: 0 0 0 3px rgba(0, 121, 191, 0.1) !important;
}

/* Selection box styling */
.select2-container--taskpress .select2-selection {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #dfe1e6 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    min-height: 40px !important;
    padding: 4px !important;
    transition: all 0.2s ease !important;
}
.select2-container--taskpress .select2-selection:hover {
    border-color: #b3bac5 !important;
}

/* Single select mode */
.select2-container--taskpress .select2-selection--single {
    height: auto !important;
    padding: 6px 12px !important;
}

.select2-container--taskpress .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    color: #172b4d !important;
    font-size: 14px !important;
}

.select2-container--taskpress .select2-selection--single .select2-selection__placeholder {
    color: #8590a2 !important;
}

.select2-container--taskpress .select2-selection--single .select2-selection__arrow {
    height: 28px !important;
    right: 8px !important;
}

.select2-container--taskpress .select2-selection--single .select2-selection__arrow b {
    border-color: #0079bf transparent transparent transparent !important;
}

/* Multiple select mode - selected items container */
.select2-container--taskpress .select2-selection--multiple {
    min-height: 42px !important;
    padding: 4px !important;
}
.select2-container--taskpress .select2-selection--multiple
.select2-container--taskpress .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 2px !important;
}

/* Selected item tags/chips styling */
.select2-container--taskpress .select2-selection--multiple .select2-selection__choice {
    background-color: #0079bf !important;
    border: 1px solid #0069a3 !important;
    border-radius: 16px !important;
    padding: 4px 8px !important;
    color: #fff !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 2px !important;
    transition: all 0.2s ease !important;
}

.select2-container--taskpress .select2-selection--multiple .select2-selection__choice:hover {
    background-color: #0069a3 !important;
    box-shadow: 0 2px 4px rgba(0, 121, 191, 0.2) !important;
}

/* Remove button on selected items */
.select2-container--taskpress .select2-selection--multiple .select2-selection__clear {
    background: #c36 !important;
    color: #fff !important;
    padding: 0px 7px;
}
.select2-container--taskpress .select2-selection--multiple .select2-selection__choice__remove {
    color: #c36 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    border: none !important;
}

.select2-container--taskpress .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    opacity: 0.8 !important;
}

/* Search input in multiple mode */
.select2-container--taskpress .select2-selection--multiple .select2-search--inline .select2-search__field {
    border: none !important;
    outline: none !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
    color: #172b4d !important;
    background: transparent !important;
    margin: 2px !important;
    min-width: 100px !important;
    height: 25px !important;
}

.select2-container--taskpress .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
    color: #8590a2 !important;
}

/* Dropdown menu styling */
.select2-container--taskpress .select2-dropdown {
    border: 1px solid #dfe1e6 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-top: 4px !important;
}

.select2-container--taskpress .select2-dropdown--below {
    border-top: 1px solid #dfe1e6 !important;
}

.select2-container--taskpress .select2-dropdown--above {
    border-bottom: 1px solid #dfe1e6 !important;
}

/* Search field in dropdown */
.select2-container--taskpress .select2-search--dropdown {
    padding: 8px !important;
}

.select2-container--taskpress .select2-search--dropdown .select2-search__field {
    border: 1px solid #dfe1e6 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #172b4d !important;
    background-color: #fff !important;
}

.select2-container--taskpress .select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: #0079bf !important;
    box-shadow: 0 0 0 3px rgba(0, 121, 191, 0.1) !important;
}

/* Results list styling */
.select2-container--taskpress .select2-results {
    max-height: 300px !important;
}

.select2-container--taskpress .select2-results__options {
    padding: 4px 0 !important;
}

/* Individual result option styling */
.select2-container--taskpress .select2-results__option {
    padding: 10px 12px !important;
    color: #172b4d !important;
    font-size: 14px !important;
    transition: all 0.15s ease !important;
}

.select2-container--taskpress .select2-results__option:hover {
    background-color: #f0f4f8 !important;
    color: #0079bf !important;
}

.select2-container--taskpress .select2-results__option--highlighted {
    background-color: #e8f0f8 !important;
    color: #0079bf !important;
}

.select2-container--taskpress .select2-results__option[aria-selected="true"] {
    background-color: #e8f0f8 !important;
    color: #0079bf !important;
}

/* No results message */
.select2-container--taskpress .select2-results__message {
    padding: 10px 12px !important;
    color: #8590a2 !important;
    font-size: 14px !important;
}

/* Loading message */
.select2-container--taskpress .select2-results__option--loading {
    padding: 10px 12px !important;
    color: #8590a2 !important;
}

/* Disabled state */
.select2-container--taskpress.select2-container--disabled .select2-selection {
    background-color: #f8f9fa !important;
    border-color: #dfe1e6 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .select2-container--taskpress .select2-selection {
        min-height: 36px !important;
        padding: 3px 6px !important;
    }

    .select2-container--taskpress .select2-selection--single {
        padding: 5px 10px !important;
    }

    .select2-container--taskpress .select2-selection--multiple .select2-selection__choice {
        padding: 3px 6px !important;
        font-size: 12px !important;
    }

    .select2-container--taskpress .select2-results__option {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .select2-dropdown {
        max-width: 100vw !important;
    }
}
