

/* ====================================
   Systrends eForms - Main Stylesheet
   ==================================== */

/* Custom Color Palette */
.bg-primary, .navbar.bg-primary, .btn-primary, .badge-primary {
    background-color: #0F3D33 !important; /* Dark Green */
    border-color: #0F3D33 !important;
    color: #ffffff !important;
}

.text-primary, .card-title.text-primary {
    color: #0F3D33 !important; /* Dark Green */
}

.text-primary-content, .navbar .text-primary-content {
    color: #FFFFFF !important; /* White text on dark green */
}

.bg-secondary, .btn-secondary, .badge-secondary {
    background-color: #EC5D2A !important; /* Orange */
    border-color: #EC5D2A !important;
    color: #ffffff !important;
}

.text-secondary {
    color: #A8C9C9 !important; /* Light Blue for secondary text */
}

.bg-base-100 {
    background-color: #FFFFFF !important; /* White */
}

.bg-base-200, body.bg-base-200 {
    background-color: #EAECE7 !important; /* Light */
}

.bg-light {
    background-color: #EAECE7 !important; /* Light */
}

.bg-light-blue {
    background-color: #A8C9C9 !important; /* Light Blue */
}

.bg-dark-brown {
    background-color: #1E1515 !important; /* Dark Brown */
}

.text-dark-brown {
    color: #1E1515 !important; /* Dark Brown */
}

/* Alerts */
.alert-info {
    background-color: #EAECE7 !important; /* Light instead of blue */
    color: #1E1515 !important; /* Dark Brown text */
    border-color: #0F3D33 !important; /* Dark Green border */
}

.alert-warning {
    background-color: #EC5D2A !important; /* Orange */
    color: #FFFFFF !important; /* White text */
    border-color: #EC5D2A !important;
}

/* Buttons */
.btn-primary {
    background-color: #0F3D33 !important; /* Dark Green */
    color: #FFFFFF !important; /* White text */
}

.btn-primary:hover {
    background-color: #1E1515 !important; /* Dark Brown on hover */
}

.btn-secondary {
    background-color: #EC5D2A !important; /* Orange */
    color: #FFFFFF !important; /* White text */
}

.btn-secondary:hover {
    background-color: #d54d1f !important; /* Darker orange on hover */
}

/* Dividers */
.divider {
    border-color: #A8C9C9 !important; /* Light Blue for dividers */
}

/* Logo */
.logo {
    height: 25px;
}

/* Typography */
.font-raleway {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.font-inter {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Gradients */
.hero-gradient {
    background: linear-gradient(135deg, #0F3D33 0%, #1E1515 100%);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease-in 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* News Cards */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Priority Indicators */
.priority-high {
    border-left: 4px solid #EC5D2A;
}

.priority-medium {
    border-left: 4px solid #A8C9C9;
}

.priority-low {
    border-left: 4px solid #EAECE7;
}

/* Modal */
.modal-box {
    max-width: 900px;
    max-height: 90vh;
}

.clickup-iframe {
    border: none;
    border-radius: 8px;
}

/* Article Content (Knowledge Base) */
.article-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.article-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.article-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Sidebar */
.sidebar-link {
    transition: all 0.2s;
}

.sidebar-link:hover {
    transform: translateX(4px);
}

/* Prose */
.prose-custom {
    max-width: none;
}

/* App Launcher Specific Styles */
.app-launcher-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0.5rem;
    border-radius: 1.5rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.app-tile:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.app-tile.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-tile.disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.app-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.app-name {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #1E1515;
    text-align: center;
    line-height: 1.2;
}

.app-description {
    font-size: 0.65rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.25rem;
    line-height: 1.2;
}


.portal-header {
    text-align: center;
    padding: 2rem 0 1rem 0;
}

.portal-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.portal-subtitle {
    color: #A8C9C9;
    font-size: 1rem;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .app-tile {
        padding: 1rem 0.25rem;
    }
    
    .app-icon {
        font-size: 2.5rem;
    }
    
    .app-name {
        font-size: 0.75rem;
    }
    
    .app-description {
        font-size: 0.6rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .app-launcher-container {
        max-width: 600px;
    }
    
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Status indicator */
.status-dot {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

.status-dot.disabled {
    background-color: #ef4444;
}

/* Pulse Animation for Login Logo */
.logo-pulse-container {
    position: relative;
    /* Ensure rings can expand outside */
    overflow: visible; 
}

.logo-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(15, 61, 51, 0.3); /* Thin border for shockwave effect */
    background-color: rgba(15, 61, 51, 0.05); /* Very subtle fill */
    box-shadow: 0 0 10px rgba(15, 61, 51, 0.1); /* Subtle glow */
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none; /* Don't interfere with clicks */
    z-index: 0;
}

.logo-pulse-ring:nth-child(1) {
    animation-delay: 0s;
}

.logo-pulse-ring:nth-child(2) {
    animation-delay: 1s;
}

.logo-pulse-ring:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}