@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}


.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0px 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg")
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg")
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg")
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg")
}

/* Add this with the other icon classes */

.document-icon {
    mask-image: url(../images/documents.svg);
    -webkit-mask-image: url(../images/documents.svg);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-color: currentColor;
}

/* Google Sheets Viewer Styles */
.sheet-data-container {
    overflow-x: auto;
    margin-top: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sheet-data-container .dxbs-grid {
    border: 1px solid #e2e8f0;
}

/* Forms.razor styles */
.form-selector {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.form-selector .dx-button {
    flex: 1;
    min-width: 150px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
}

.form-selector .dx-button.selected {
    background-color: #007bff;
    color: white;
}

.button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.button-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.forms-block {
    position: relative;
    padding: a30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: white;
    margin-bottom: 30px;
}

.forms-content {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.forms-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.forms-text {
    color: #666;
    margin-bottom: 20px;
}

.forms-block-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(0,123,255,0.1);
    border-radius: 10px 10px 0 0;
    z-index: 0;
}

.user-task-logs {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.user-task-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Editable entry styling */
.badge[title="Entries are only editable for 24 hours"] {
    cursor: help;
}

button.btn-primary i.oi-pencil {
    margin-right: 4px;
}

/* Activity Banner Styling */
.activity-banners-container {
    margin-top: 1.5rem;
}

.activity-banner {
    border: 1px solid #34495e;
    border-radius: 8px;
    overflow: hidden;
    background-color: #2d2d2d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.activity-banner:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.activity-banner-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #34495e;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.activity-banner-header:hover {
    background-color: #3a536b;
}

.activity-name {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    font-size: 1.1rem;
}

.activity-stats {
    display: flex;
    gap: 1rem;
}

.activity-stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-value {
    color: #ecf0f1;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

.stat-label {
    color: #bdc3c7;
    font-size: 0.8rem;
    display: block;
}

.activity-banner-details {
    padding: 1.5rem;
    border-top: 1px solid #445566;
}

.activity-details-stats {
    margin-bottom: 1.5rem;
}

.detail-stat-card {
    background-color: #2c3e50;
    border-radius: 6px;
    padding: 1rem;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-stat-header {
    color: #9b59b6;
    font-weight: 600;
    border-bottom: 1px solid #3a506b;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.detail-stat-body {
    padding-top: 0.5rem;
}

.detail-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #ecf0f1;
}

.detail-stat-row span:first-child {
    color: #bdc3c7;
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
    
    .activity-banner-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .activity-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .activity-stat-item {
        min-width: 70px;
        flex: 0 0 calc(33.33% - 1rem);
    }
}

/* DevExpress component style overrides */
.dx-button.btn-primary,
.dx-button.btn-link {
    /* Use DevExpress styling, not Bootstrap */
    color: inherit;
    background-color: inherit;
    border-color: inherit;
}

/* Make sure Bootstrap styles don't override DevExpress */
.btn-primary.dx-button:hover,
.btn-link.dx-button:hover {
    color: inherit;
    background-color: inherit;
    border-color: inherit;
}

/* Add to your site.css or component CSS files */
:root {
    --form-padding-mobile: 0.75rem;
    --form-padding-desktop: 1.5rem;
    --input-height-mobile: 42px;
    --gap-mobile: 0.5rem;
}

/* Mobile-first approach - start with mobile styles */
.modern-form-card {
    padding: var(--form-padding-mobile);
    border-radius: 0.5rem;
    width: 100%;
}

/* Then add desktop styles */
@media (min-width: 768px) {
    .modern-form-card {
        padding: var(--form-padding-desktop);
    }
}

/* Global landscape orientation fixes */
@media (orientation: landscape) and (max-height: 500px) {
    /* Make sections more compact vertically */
    .section-card {
        margin-bottom: 0.5rem;
    }
    
    .section-header {
        padding: 0.5rem 1rem;
    }
    
    .section-header h4 {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    /* Allow more horizontal scrolling for tables */
    .table-responsive {
        max-height: calc(100vh - 180px);
    }
}

/* Update these styles in your site.css file */

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff3b30; /* Brighter red */
    color: white;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Add shadow */
    border: 2px solid #f83329; /* Add red border */
    animation: card-pulse 2s infinite; /* Add subtle pulse animation */
}

@keyframes card-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(255, 59, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.welcome-card {
    position: relative; /* For positioning the badge */
}

.welcome-card-text {
    position: relative;
}