/*
 * Copyright (c) 2022 Ford Motor Company
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@use '../../Styles/main';

.column-header {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 60px;
	margin-bottom: 30px;
	padding: 24px;

	color: main.$white;
	font-weight: bold;
	font-size: 1.7rem;
	text-align: center;

	background-color: main.$black;
	border-radius: 6px;
	box-shadow: 0 2px 20px rgba(main.$black, 0.25);
	cursor: default;

	position: relative;

	.column-header-title {
		display: inline-block;
		width: auto;
		height: auto;
		margin-right: 8px;
		padding: 0;
		overflow: hidden;

		color: inherit;
		font-family: inherit;
		font-weight: inherit;
		font-size: inherit;
		white-space: nowrap;
		text-align: center;
		text-overflow: ellipsis;

		background-color: transparent;
		border: 0;
		outline: none;
		cursor: inherit;
	}

	&.happy {
		background-color: main.$green;
	}

	&.confused {
		background-color: main.$blue;
	}

	&.unhappy {
		background-color: main.$red;
	}

	&.action {
		background-color: main.$yellow;
	}
}

@include main.dark-theme {
	.column-header {
		color: main.$off-white;

		&.happy {
			background-color: main.$dark-green;
		}

		&.confused {
			background-color: main.$dark-blue;
		}

		&.unhappy {
			background-color: main.$dark-red;
		}

		&.action {
			background-color: main.$dark-yellow;
		}
	}
}
