// The ui-variables file is provided by base themes provided by Atom.
//
// See https://github.com/atom/atom-dark-ui/blob/master/styles/ui-variables.less
// for a full listing of what's available.
@import "ui-variables";
@import "../node_modules/react-checkbox-tree/src/less/react-checkbox-tree.less";

// Color variables (appears count calculates by raw css)
@color-bg: #2c313a;
@color-br: #181a1f;
@color-bg-child: #3a3f4b;

// Height variables (appears count calculates by raw css)
@height-max: 312px;

// Font Awesome
@font-face {
  font-family: 'FontAwesome';
  font-weight: normal;
  font-style: normal;
  src: url(atom://etheratom/fonts/fontawesome-webfont.woff) format('woff');
}

// Panel
.etheratom-panel {
	display: flex;
	flex-direction: row;
	height: 100%;
	max-width: 50vw;
	width: 27vw;
	min-width: 20vw;
	overflow: scroll;
	&-resize-handle {
		flex: 0 0 0.3em;
		height: initial;
		right: auto;
		bottom: 0;
		cursor: col-resize;
		background-color: #353b45;
	}
}

.etheratom {
	width: 100%;
	min-width: 340px;

	select {
		border-color: #181a1f;
	}

	.row {
		display: flex;
		width: 100%;
		margin-top: 10px;
		padding: 0px 8px;
	}

	.icon {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.compiler-info {
		font-family: 'Hack', Serif;
		font-weight: bold;
		display: block;
		text-align: center;
		margin: 5px 0;
		padding: 5px 0;
	}
	.tx-header {
		font-family: 'Hack', Serif;
		font-weight: normal;
		font-size: small;
		display: block;
		text-align: center;
		margin: 5px 0;
		padding: 5px 0;
	}

	#version_selector {
		select {
			flex-grow: 1;
			width: 100%;
			height: 36px;
			background-color: @color-bg;
			border: 1px solid @color-br;
			max-height: @height-max;
			overflow-y: auto;
			padding: 0;
			position: relative;

			option {
				background-color: @color-bg-child;
				border: 1px solid @color-br;
				margin: 10px 0 0 0;
				max-height: @height-max;
				overflow-y: auto;
				padding: 0;
				position: relative;
				line-height: 2em;
			}
		}
	}
	#accounts-list {
		select {
			flex-grow: 1;
			width: 100%;
			height: 36px;
			background-color: @color-bg;
			border: 1px solid @color-br;
			max-height: @height-max;
			overflow-y: auto;
			padding: 0;
			position: relative;

			option {
				background-color: @color-bg-child;
				border: 1px solid @color-br;
				margin: 10px 0 0 0;
				max-height: @height-max;
				overflow-y: auto;
				padding: 0;
				position: relative;
				line-height: 2em;
			}
		}

		form {
			input {
				background-color: #2c313a;
				border: solid 1px #181a1f;
				height: 36px;
			}
			input:first-of-type {
				padding-left: 8px;
				width: 100%;
				background-color: @color-bg;
			}
		}
	}

	#client-options {
		text-align: center;
		display: block;
		.client-select {
			form {
				.clients {
					display: flex;
					flex-direction: row;
					justify-content: center;
					align-items: center;
				}
			}
		}
	}

	#common-buttons {
		text-align: center;
	}

	#compiled-error {
		ul {
			list-style: none;
			display: flex;
			flex-direction: column;
			justify-content: flex-start;
			align-items: flex-start;
		}
	}
    #test-error {
        ul {
			list-style: none;
			display: flex;
			flex-direction: column;
			justify-content: flex-start;
			align-items: flex-start;
		}
    }
	#NodeControl {
		.list-group {
			.list-item {
				margin-top: 2px;
				margin-bottom: 2px;

                .input-text {
                    display: inline-block !important;
                    max-width: 75%;
                }
			}
		}
        .row {
            padding: 0 !important;
    	}

        form {
                input {
                  background-color: #2c313a;
                  border: solid 1px #181a1f;
                }
                input.smallbtn {
                  width: auto !important;
                }
                input:first-of-type {
                  flex: 1 0 150px;
                  padding-left: 8px;
                  width: 100%;
                  background-color: @color-bg;
                }
		}
	}

	.input {
		background-color: @pane-item-background-color;
		border: solid 1px @pane-item-border-color;
		font-size: initial;
		margin: 2px;
	}

	.inputs {
		background-color: @input-background-color;
		border: solid 1px @input-border-color;
		font-weight: lighter;
		font-size: initial;
	}

	.contract-container {
		border-bottom: solid 2px @base-border-color;
		margin-bottom: 8px;
		padding: 5px;
	}

	.contract-name {
		margin: 2px 0;
		pading: 2px 0;
	}

	.large-code {
		max-height: 150px;
		margin: 10px 5px;
		&::selection {
			background-color: @background-color-selected;
		}
	}

	.call-button {
		background-color: @pane-item-background-color;
		border: solid 1px @pane-item-border-color;
		font-size: initial;
		margin: 2px;
	}

	.call-button-values {
		background-color: @input-background-color;
		border: solid 1px @input-border-color;
		font-weight: lighter;
		font-size: initial;
		margin: 2px 2px 2px 0;
	}

	.stat-sent {
		display: block;
	}

	.stat-mining {
		display: inline;
		color: #6494ed;
	}

	.stat-mining-align {
		vertical-align: middle;
	}

	// unlock button
	.unlock-default {
		background-color: @button-background-color;
	}

	.unlock-active {
		color: @text-color-highlight !important;
		background-color: @button-background-color-selected !important;
	}

	.file-collapse-label {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	.gas-estimate-form {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
	}
}
.red-message {
	color: @text-color-error;
}
.green-message {
	color: @text-color-success;
}
.copy-btn {
  cursor: pointer;
  transition: all 0.2s ease-in-out;

  &:hover {
    color: @text-color-highlight;
  }

	&:focus,&:active {
		color: @text-color-success;
	}
}

// Tab view styling
.vertical-tabs {
	display: flex;
	flex-direction: row;
	align-items: flex-start;

	.vertical {
		rotate: -90deg;
	}
	.tab_btns {
		display: flex;
		flex-direction: row-reverse;
		list-style: none;
	}
	.tablist {
		width: 0;
		margin-top: 25vh;
	}
	.react-tabs__tab-panel--selected {
		width: 90%;
	}
	.react-tabs__tab--selected {
		.btn {
			color: white;
			background-color: #21252b;
			background-image: linear-gradient(#2c313a, #21252b);
		}
	}
}

.form-btn {
	display: flex;
	justify-content: center;
}

.flex-row {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.tx-list-container {
	height: 300px;
}

.tx-list-item {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.test-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-result-list-item {
    display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.event-collapse-label {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.notify-badge {
	margin-left: 5px;
	margin-right: 5px;
}

.no-header {
	text-align: center;
}

.test-header {
    text-align: center;
}

.tab_btns li .icon-button {
    height: 100%;
}
.save-abi {
    display: flex;
    button {
        margin: 2px;
    }
}
