@import "constants.css";

.card-primary {
    background: white;
    border: 0 none;
    border-radius: 8px;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    width: 80%;
    position: relative;
    margin: 0 10%;
    height: fit-content;
    transition: height 0.3s ease-in-out;
}

.card-left-colored-side {
    z-index: 10;
    left: 0;
    top: 0;
    width: 20px;
    height: 100%;
    transition: width 0.3s;
    background-color: var(--primaryColor);
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
}

.card-primary:hover {
    cursor: pointer;
}

.card-primary:hover .card-left-colored-side {
    width: 100%;
}


.card-left-side-price {
    margin-left: 40px;
    font-weight: normal;
    font-size: 25px;
    color: #555A5F;
    transition: color 0.3s;
    z-index: 30;
}

.card-primary:hover .card-left-side-price {
    color: #fff;
}

.card-vertical-divider {
    border-right: 1px solid #ECECEC;
}

.card-title {
    color: var(--cadetBlueDarker3);
    font-size: 20px;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-from-to {
    position: absolute;
    top: 15px;
    width: 2px;
    height: 23px;
    background: repeating-linear-gradient(var(--primaryColor), var(--primaryColor) 3px, transparent 3px, transparent 6px);
    border-color: var(--primaryColor);
}

.card-from-to:before, .card-from-to:after {
    content: "";
    position: absolute;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid;
    border-color: inherit;
}

.card-from-to:before {
    top: -11px;
}

.card-from-to:after {
    bottom: -9px;
}

.card-primary .card-details {
    display: none;
    padding-bottom: 20px;
}

.card-primary.active-details .card-details {
    display: block;
}

.card-primary.active-details:hover {
    cursor: default;
}


.card-button {
    height: 40px;
    background-color: var(--primaryColor);
    text-transform: uppercase;
    font-size: 16px;
    color: white;
    outline: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0;
    transition: letter-spacing 0.3s;
    display: none;
    width: 100%;
}

.button-label-text1, .button-label-text2 {
    display: none;
}


.card-button:hover {
    letter-spacing: 1px;
}

.card-request {
    display: none;
}

.card-primary.active-request .card-request {
    display: block;
}

.card-primary.active-details .card-button {
    display: block;
}

.card-primary.active-details .card-button.button-label-text1 {
    display: block;
}

.card-primary.active-details .card-button.button-label-text2 {
    display: none;
}

.card-primary.active-request .card-button.button-label-text2 {
    display: block;
}

.card-primary.active-request .card-button.button-label-text1 {
    display: none;
}

.applied-icon {
    display: block !important;
    text-align: right;
}

.card-primary.active-details .applied-icon {
    display: none !important;
}



.card-primary.active-details .card-button.danger {
    background-color: #BA0021;
    display: block;
}

.card-sender-img {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
    width: 60px;
    height: 60px;
    margin-right: 5px;
    border-radius: 8px;
}

.card-sender-img-inner {
    height: 100%;
    filter: grayscale(100%);
}

.card-img-style {
    width: 100%;
    min-height: 100%;
}

.card-sender-name {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
    margin-top: 15px;
    margin-bottom: 40px;
}

.card-header-close-btn {
    z-index: 2;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
    cursor: pointer;
    display: none;
}

.card-primary.active-details .card-header-close-btn {
    display: block;
}

.card-header-close-btn:hover {
    transform: scale(125%);
}

.card-header-close-btn:before, .card-header-close-btn:after {
    content: "";
    position: absolute;
    right: 5px;
    top: 7px;
    width: 23px;
    height: 2px;
    background: var(--primaryColor);
}

.card-header-close-btn:before {
    transform: rotate(-45deg);
}

.card-header-close-btn:after {
    transform: rotate(45deg);
}

.status-box{
    width: 80%;
    position: relative;
    margin: 0 10%;
    padding: 5px 30px;
    background: white;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
}

.btn-star .favorite-added {
    color: #FFD700;
}

.btn-star:hover {
    color: #FFD700;
    scale: 130%;
    transition: color 0.7s ease;
}

.btn-star {
    color: #B5B5B5;
}

.btn-star-active {
    color: #FFD700;
}

.yellow-star {
    color: #FFD700;
}

.btn-star-active:hover {
    color: #B5B5B5;
    scale: 130%;
    transition: color 0.7s ease;
}


.status-accepted {
    background-color: var(--primaryColor);
    color: white;
}

.status-expired {
    background-color: var(--cadetBlueBrigter6);
    color: var(--primaryColor);
}

.status-denied {
    background-color: var(--redDanger);
    color: white;
}


.status-expired {
    background-color: lightgray;
    color: white;
}

.status-pending {
    background-color: var(--orangePrimaryColor);
    color: white;
}

.status-application .card-primary {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.status-application .card-left-colored-side {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.link:hover {
    text-decoration: underline;
}

@media screen and (max-width: 800px) {
    .card-primary, .status-box {
        width: 100%;
        margin: 0;
    }

    .card-left-side-price {
        margin-left: 25px;
        color: white !important;
    }

    .card-button {
        width: 100%;
    }
}

@media screen and (max-width: 575px) {

    .card-left-colored-side {
        width: 100%;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        border-bottom-left-radius: 0;
    }

    .card-primary {
        border-top-right-radius: 8px;
    }

    .card-vertical-divider {
        border: 0;
    }
}
