﻿.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

    .user-menu:hover {
        background-color: var(--secondary);
    }

    .user-menu img {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        object-fit: cover;
    }

/* Progress Bar */
.progress-container {
    padding: 2rem 0 1rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.step-title {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--primary);
    color: white;
}

.step.active .step-title {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-number {
    background-color: var(--success);
    color: white;
}

.progress-bar-container {
    height: 4px;
    background-color: var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: -15px;
    z-index: 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 100%; /* Fourth step of four */
    transition: width 0.5s ease;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.page-title {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .section-title i {
        font-size: 1.5rem;
    }

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--primary-light);
    font-weight: 600;
    color: var(--primary-dark);
    position: relative;
}

.card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.25);
    }

    .form-control:disabled, .form-control[readonly] {
        background-color: #f8f9fa;
        cursor: not-allowed;
    }

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Legal basis styles */
.legal-basis-container {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    background-color: #f9f9f9;
    margin-bottom: 1.5rem;
}

.legal-basis-header {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.legal-basis-content {
    line-height: 1.6;
}

    .legal-basis-content p {
        margin-bottom: 1rem;
    }

    .legal-basis-content strong {
        color: var(--primary-dark);
    }

/* Tags/Clauses */
.clauses-container {
    margin-top: 1.5rem;
}

.clauses-title {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clauses-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.clause-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 4px;
    font-size: 0.875rem;
    transition: var(--transition);
}

    .clause-tag button {
        background: none;
        border: none;
        color: var(--danger);
        cursor: pointer;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        transition: var(--transition);
    }

        .clause-tag button:hover {
            background-color: rgba(229, 57, 53, 0.1);
        }

.add-clause-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

    .add-clause-form input {
        flex: 1;
    }

/* Summary section */
.summary-container {
    margin-top: 2rem;
}

.summary-header {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.summary-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

    .summary-item:last-child {
        border-bottom: none;
    }

.summary-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.summary-value {
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: none;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .btn:active {
        transform: translateY(1px);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .btn::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: rgba(255, 255, 255, 0.2);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease-out;
    }

    .btn:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #009688, #00796b);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #00a896, #00897b);
    }

.btn-secondary {
    color: var(--text);
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

    .btn-secondary:hover {
        background: linear-gradient(135deg, #f9f9f9, #e9e9e9);
    }

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-success {
    color: white;
    background: linear-gradient(135deg, #43a047, #388e3c);
}

    .btn-success:hover {
        background: linear-gradient(135deg, #4caf50, #43a047);
    }

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

    .btn-outline:hover {
        background-color: rgba(0, 150, 136, 0.1);
    }

/* Navigation buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: var(--success);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    z-index: 1100;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

    .notification.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive styles */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .header-content {
        flex-direction: column;
        padding: 1rem;
    }

    .header-actions {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    .progress-steps {
        display: none;
    }

    .progress-bar-container {
        margin-top: 0;
    }

    .step-mobile {
        display: block;
        text-align: center;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        color: var(--primary);
        font-weight: 600;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .add-clause-form {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .step-mobile {
        display: none;
    }
}
