/* Ubuntu Theme Variables */
:root {
    --primary-color: #E95420; /* Ubuntu orange */
    --secondary-color: #772953; /* Ubuntu aubergine/purple */
    --accent-color: #AEA79F; /* Ubuntu warm grey */
    --text-color: #333333;
    --light-bg: #FFFFFF;
    --dark-bg: #2C001E; /* Ubuntu dark aubergine */
    --border-radius: 4px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.2s;
    --card-padding: 1.25rem;
    --text-secondary: #5E2750; /* Light aubergine */
    --border-color: #CDCDCD;
    --success-color: #38B44A; /* Ubuntu green */
    --warning-color: #EFB73E; /* Ubuntu yellow */
    --danger-color: #DF382C; /* Ubuntu red */
    --info-color: #19B6EE; /* Ubuntu blue */
    --ubuntu-font: 'Ubuntu', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: var(--ubuntu-font);
    line-height: 1.6;
    font-size: 16px;
}

::selection {
    background: var(--primary-color);
    color: white;
}

header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: white !important;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px;
    font-weight: 400;
    padding: 0.5rem 1rem;
    transition: color var(--transition-speed) ease;
    border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    border-bottom: 2px solid white;
}

.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: rgba(233, 84, 32, 0.05) !important;
    border-bottom: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.75rem var(--card-padding);
}

.card-body {
    padding: var(--card-padding);
}

.card-title {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
}

.btn {
    border-radius: var(--border-radius);
    font-family: var(--ubuntu-font);
    font-weight: 400;
    padding: 0.375rem 1rem;
    transition: all var(--transition-speed) ease;
    text-transform: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #C34113; /* Darker orange */
    border-color: #C34113;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5E2750; /* Lighter aubergine */
    border-color: #5E2750;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.social-link {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    margin: 0 0.25rem;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.progress {
    background-color: #F7F7F7;
    border-radius: var(--border-radius);
    height: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.form-control, .form-select {
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--ubuntu-font);
    font-size: 16px;
    padding: 0.5rem 0.75rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(233, 84, 32, 0.25);
}

.form-control::placeholder {
    color: #aaa;
    opacity: 1;
}

.list-group-item {
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
}

.list-group-item:hover {
    background-color: rgba(233, 84, 32, 0.03);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.badge {
    font-family: var(--ubuntu-font);
    font-weight: 400;
    padding: 0.35em 0.65em;
    border-radius: 50px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--text-color);
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

.badge-info {
    background-color: var(--info-color);
    color: white;
}

/* Ubuntu style navigation tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-weight: 400;
    padding: 0.5rem 1rem;
    margin-right: 0.25rem;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-speed) ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: rgba(233, 84, 32, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom-color: var(--primary-color);
    font-weight: 500;
}

/* Ubuntu toast/notification style */
.toast {
    background-color: var(--dark-bg);
    color: white;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all var(--transition-speed) ease;
}

.toast:hover {
    opacity: 1;
}

.toast-header {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-body {
    padding: 0.75rem;
}

/* Ubuntu style accordion */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    background-color: #F7F7F7;
    color: var(--text-color);
    padding: 0;
}

.accordion-button {
    background-color: #F7F7F7;
    color: var(--text-color);
    font-weight: 500;
    padding: 1rem 1.25rem;
    transition: all var(--transition-speed) ease;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(233, 84, 32, 0.05);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(233, 84, 32, 0.25);
}

.accordion-body {
    padding: 1rem 1.25rem;
    background-color: white;
}

/* Ubuntu style switch */
.form-switch .form-check-input {
    background-color: var(--border-color);
    border-color: var(--border-color);
    width: 40px;
    height: 20px;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(233, 84, 32, 0.25);
}

/* Ubuntu tooltip style */
.tooltip {
    font-family: var(--ubuntu-font);
    font-size: 14px;
}

.tooltip .tooltip-inner {
    background-color: var(--dark-bg);
    color: white;
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before, 
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--dark-bg);
}

/* Ubuntu pagination style */
.pagination {
    margin-top: 1rem;
}

.pagination .page-item .page-link {
    color: var(--primary-color);
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.75rem;
    transition: all var(--transition-speed) ease;
}

.pagination .page-item .page-link:hover {
    background-color: rgba(233, 84, 32, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Ubuntu alert style */
.alert {
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: none;
}

.alert-primary {
    background-color: rgba(233, 84, 32, 0.1);
    color: var(--primary-color);
}

.alert-secondary {
    background-color: rgba(119, 41, 83, 0.1);
    color: var(--secondary-color);
}

.alert-success {
    background-color: rgba(56, 180, 74, 0.1);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(239, 183, 62, 0.1);
    color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(223, 56, 44, 0.1);
    color: var(--danger-color);
}

.alert-info {
    background-color: rgba(25, 182, 238, 0.1);
    color: var(--info-color);
}

/* Ubuntu dark mode overrides */
.ubuntu-dark {
    background-color: var(--dark-bg);
    color: #f7f7f7;
}

.ubuntu-dark .card {
    background-color: #3D1E32;
    border-color: #4E2A3E;
}

.ubuntu-dark .card-header {
    background-color: #4E2A3E !important;
    border-color: #5E354C;
}

.ubuntu-dark h1, .ubuntu-dark h2, .ubuntu-dark h3, 
.ubuntu-dark h4, .ubuntu-dark h5, .ubuntu-dark h6 {
    color: #f7f7f7;
}

.ubuntu-dark .form-control,
.ubuntu-dark .form-select {
    background-color: #3D1E32;
    border-color: #4E2A3E;
    color: #f7f7f7;
}

.ubuntu-dark .list-group-item {
    background-color: #3D1E32;
    border-color: #4E2A3E;
    color: #f7f7f7;
}

.ubuntu-dark .toast {
    background-color: #4E2A3E;
}

/* Ubuntu specific elements */
.ubuntu-window {
    background-color: var(--light-bg);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 20px;
}

.ubuntu-window-header {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.window-controls {
    display: flex;
    margin-right: 10px;
}

.window-control-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.window-close {
    background-color: var(--danger-color);
}

.window-minimize {
    background-color: var(--warning-color);
}

.window-maximize {
    background-color: var(--success-color);
}

.window-title {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

.ubuntu-window-content {
    padding: 16px;
}

/* Ubuntu-style tooltips */
.tooltip .tooltip-inner {
    background-color: #2C2C2C;
    color: white;
    border-radius: 4px;
    padding: 6px 10px;
    font-family: var(--ubuntu-font);
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tooltip .arrow::before {
    border-top-color: #2C2C2C;
}

/* Ubuntu-style notifications */
.ubuntu-notification {
    background-color: rgba(44, 44, 44, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.notification-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.notification-message {
    flex-grow: 1;
}

.notification-close {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.notification-close:hover {
    color: white;
}

/* Ubuntu-style switch */
.ubuntu-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.ubuntu-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ubuntu-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCC;
    transition: .4s;
    border-radius: 24px;
}

.ubuntu-switch .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.ubuntu-switch input:checked + .slider {
    background-color: var(--primary-color);
}

.ubuntu-switch input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

.ubuntu-switch input:checked + .slider:before {
    transform: translateX(16px);
}

/* Ubuntu dock styling */
.ubuntu-dock {
    background-color: rgba(44, 44, 44, 0.8);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dock-item {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.dock-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
} 