/* Основные стили для системы оптимизации процессов */

/* Общие стили */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: rgba(23, 36, 44, 1) !important;
    color: #fff;
}

main {
    flex: 1;
}

/* Стили для навигации */
.navbar {
    background-color: rgb(41, 70, 96) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: bold;
    color: #fff !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #fff !important;
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Стили для карточек */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    background-color: rgba(41, 70, 96, 0.5);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
    font-weight: bold;
    background-color: rgb(41, 70, 96) !important;
    color: white !important;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: rgba(41, 70, 96, 0.3);
    border-bottom-left-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для форм авторизации */
.login-form, .signup-form {
    max-width: 550px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
}

.form-control {
    background-color: rgb(41, 70, 96) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
    transform: scale(1.01);
}

/* Эффект фокуса для форм */
.is-focused .form-control {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

.has-value .form-control {
    background-color: rgba(41, 70, 96, 0.8) !important;
}

.btn-primary {
    background-color: rgb(41, 70, 96) !important;
    border-color: rgb(41, 70, 96) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background-color: rgba(41, 70, 96, 0.9) !important;
    border-color: rgb(41, 70, 96) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Кнопка пульсации */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* Ripple эффект для кнопок */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.7s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Стили для alert-сообщений */
.alert {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.9);
    color: white;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.9);
    color: #212529;
}

.alert-error {
    background-color: #dc3545;
    color: #212529;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.9);
    color: white;
}

/* Вспомогательные классы */
.text-primary {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Анимация ссылок */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Стили для шагов мастера */
.progress {
    height: 1.5rem;
    background-color: rgba(41, 70, 96, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    font-weight: bold;
    background-image: linear-gradient(to right, rgb(41, 70, 96), rgb(61, 90, 116));
    transition: width 0.5s ease;
}

.step-form, .task-form {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.step-form:hover, .task-form:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Стили для таблиц */
.table-hover tbody tr:hover {
    background-color: rgba(41, 70, 96, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Стили для статусов */
.status-badge {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
    border-radius: 50rem;
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: scale(1.05);
}

.status-draft {
    background-color: #6c757d;
}

.status-submitted {
    background-color: #ffc107;
}

.status-approved {
    background-color: #28a745;
}

.status-rejected {
    background-color: #dc3545;
}

.status-implemented {
    background-color: #17a2b8;
}

/* Стили для аналитических панелей */
.analytics-card {
    border-left: 4px solid;
    height: 100%;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.analytics-card.blue {
    border-left-color: #4e73df;
}

.analytics-card.green {
    border-left-color: #1cc88a;
}

.analytics-card.orange {
    border-left-color: #f6c23e;
}

.analytics-card.red {
    border-left-color: #e74a3b;
}

/* Дополнительные стили для шагов мастера */
.step-card {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Стили для кнопок действий */
.btn-action {
    margin-right: 5px;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
}

/* Dropdown меню */
.dropdown-menu {
    background-color: rgb(41, 70, 96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #fff;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .login-form, .signup-form {
        margin: 0 1rem;
    }
}

/* Стили для главной страницы */
.bg-light {
    background-color: rgba(41, 70, 96, 0.5) !important;
    color: white !important;
}

.display-5 {
    color: white !important;
}

.list-group-item {
    background-color: rgba(41, 70, 96, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    border-radius: 0.25rem !important;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(41, 70, 96, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.list-group-item-action {
    color: white !important;
}

.card-dashboard {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.icon-large {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.card-dashboard h2 {
    font-size: 2.5rem !important;
    font-weight: bold;
}

.btn-outline-primary {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-color: white !important;
} 