@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
[aria-busy="true"]::before { 
  content: none !important;
}

/* Remove radius from all buttons in the group by default */
[role="group"] > form > button,
[role="group"] > form > input[type="submit"] {
  border-radius: 0 !important;
  white-space: nowrap;
}

/* Only round the very first button's left corners */
[role="group"] > form:first-child > button,
[role="group"] > form:first-child > input[type="submit"] {
  border-top-left-radius: var(--pico-border-radius) !important;
  border-bottom-left-radius: var(--pico-border-radius) !important;
}

/* Only round the very last button's right corners */
[role="group"] > form:last-child > button,
[role="group"] > form:last-child > input[type="submit"] {
  border-top-right-radius: var(--pico-border-radius) !important;
  border-bottom-right-radius: var(--pico-border-radius) !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 *= require_selection
 */

.field_with_errors {
    display: inline;
}

.field_with_errors input {
    border-color: red !important;
}

.minimized-project {}

.minimized-project td {
    display: none !important;
}

.drop-indicator-open {
    display: inline;
}

.drop-indicator-closed {
    display: none;
}

.minimized-project .drop-indicator-open {
    display: none !important;
}

.minimized-project .drop-indicator-closed {
    display: inline !important;
}

.fade-animation {
    animation: appear-then-fade 3s both;
}

@keyframes appear-then-fade {

    0%,
    100% {
        opacity: 0
    }

    5%,
    60% {
        opacity: 1
    }
}

.table th:first-child {
    position: static !important;
}

table#project_table th:hover {
    .copy-icon {
        opacity: 1;
    }
}

table#project_table tbody tr th.column-project-name:hover {
    .copy-icon {
        opacity: 1;
    }
}

/* CSS Related to tracking working hours */
.stop_button {
    text-align: center;
}

.start_button {
    text-align: center;
}

p.digital_clock {
    text-align: center;
    font-size: 4em;
    color: darkgreen;
}

p.digital_clock.stopped {
    color: black;
}

.activity_sign {
    animation: blinker 1.6s linear infinite;
}

@keyframes blinker {
    0% {
        opacity: 0;
    }

    49% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}
