/* SAPPORO Custom Styles */

/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Hide ToolPage header and sidebar in login mode */
.sapporoLoginMode .sapTntToolHeader {
    display: none !important;
}

.sapporoLoginMode .sapTntSideNavigation {
    display: none !important;
}

.sapporoLoginMode .sapTntToolPageContentWrapper {
    margin-left: 0 !important;
    padding-top: 0 !important;
}

/* Login Page - Fondo blanco/gris */
.sapporoLoginPage {
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.sapporoLoginCenter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    flex: 1;
}

.sapporoLoginHeader {
    text-align: center;
    margin-bottom: 2rem;
}

.sapporoLoginTitle {
    color: #0a6ed1 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    letter-spacing: 4px;
    margin: 0;
}

.sapporoLoginCard {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    width: 100%;
    box-sizing: border-box;
}

.sapporoLoginCard .sapMLabel {
    color: #333;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.sapporoLoginCard .sapMInput {
    margin-bottom: 0.5rem;
}

/* Footer - nombre izquierda, logo derecha */
.sapporoLoginFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    margin-top: auto;
}

.sapporoFooterText {
    color: #6a6d70;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
}

.sapporoFooterLogo {
    height: 32px;
    width: auto;
}

.sapporoErrorText {
    color: #bb0000;
    text-align: center;
}

/* Dashboard */
.sapporoStatCard {
    min-height: 120px;
}

.sapporoActionCard {
    min-height: 150px;
}

.sapporoRecentCard {
    min-height: 300px;
}

.sapporoQuickAction {
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.sapporoQuickAction:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sapporoQuickActionButton {
    width: 60px !important;
    height: 60px !important;
}

.sapporoQuickActionButton .sapMBtnIcon {
    font-size: 1.5rem;
}

/* Secondary text */
.sapporoSecondaryText {
    color: #6a6d70;
    font-size: 0.875rem;
}

/* Tables */
.sapMList .sapMLIBActive {
    background-color: rgba(10, 110, 209, 0.1);
}

/* Navigation */
.sapTntSideNavigation {
    background-color: #f5f6f7;
}

/* Cards */
.sapFCard {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .sapporoLoginCard {
        width: 100%;
        margin: 1rem;
    }

    .sapporoQuickActionButton {
        width: 50px !important;
        height: 50px !important;
    }

    .sapporoLoginFooter {
        padding: 1rem;
    }

    .sapporoFooterLogo {
        height: 24px;
    }
}

/* Priority colors */
.sapporoHighPriority {
    color: #bb0000;
}

.sapporoMediumPriority {
    color: #e9730c;
}

.sapporoLowPriority {
    color: #107e3e;
}

/* Status indicators */
.sapporoStatusOpen {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 4px;
}

.sapporoStatusClosed {
    background-color: #d4edda;
    color: #155724;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Accesses */
.sapporoPasswordField {
    font-family: monospace;
    letter-spacing: 0.1em;
}

.sapporoPasswordHidden {
    filter: blur(4px);
    user-select: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sapporoFadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* Toolbar styling */
.sapTntToolHeader {
    background-color: #0a6ed1;
}

.sapTntToolHeader .sapMTitle {
    color: white;
}

.sapTntToolHeader .sapMBtn {
    color: white;
}

/* Block layout adjustments */
.sapUiBlockLayoutBackground.sapUiBlockLayoutBackgroundDashboard {
    background-color: #f5f6f7;
}

/* Notification badge - button with unread count */
.sapporoNotificationBadge {
    position: relative !important;
}

/* Make bell icon red when there are notifications - multiple selectors for SAPUI5 */
.sapporoNotificationBadge .sapMBtnIcon {
    color: #cc0000 !important;
}

.sapporoNotificationBadge .sapUiIcon {
    color: #cc0000 !important;
}

.sapporoNotificationBadge [data-sap-ui-icon-content]:before {
    color: #cc0000 !important;
}

.sapporoNotificationBadge .sapMBtnInner .sapMBtnIcon {
    color: #cc0000 !important;
}

/* Target the icon font directly */
.sapporoNotificationBadge span[data-sap-ui-icon-content] {
    color: #cc0000 !important;
}

/* Badge number styling */
.sapporoNotificationBadge .sapMBtnContent,
.sapporoNotificationBadge .sapMBtnText {
    background-color: #cc0000 !important;
    color: white !important;
    border-radius: 10px !important;
    min-width: 18px !important;
    height: 18px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    margin-left: 4px !important;
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.4) !important;
    animation: pulseBadge 1.5s ease-in-out infinite !important;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Notification list items - unread state (blue highlight) */
.sapMNLI.sapMNLIUnread {
    background-color: #e3f2fd !important;
    border-left: 4px solid #1976d2 !important;
}

.sapMNLI.sapMNLIUnread .sapMNLITitleText {
    font-weight: 700 !important;
    color: #1565c0 !important;
}

.sapMNLI.sapMNLIUnread .sapMNLIDescription {
    color: #333 !important;
}

/* Notification list items - read state (faded) */
.sapMNLI:not(.sapMNLIUnread) {
    background-color: #fafafa !important;
    border-left: 4px solid #e0e0e0 !important;
}

.sapMNLI:not(.sapMNLIUnread) .sapMNLITitleText {
    font-weight: 400 !important;
    color: #757575 !important;
}

.sapMNLI:not(.sapMNLIUnread) .sapMNLIDescription {
    color: #9e9e9e !important;
}
