/* Custom Styles for PPSP Website */

/* Font Family */
body {
    font-family: 'Inter', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Gradient Background Patterns */
.gradient-circle {
    background: radial-gradient(circle, rgba(143, 5, 1, 0.1) 0%, rgba(143, 5, 1, 0.05) 50%, transparent 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(143, 5, 1, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(143, 5, 1, 0.05) 0%, transparent 50%);
}

.bg-red {
    background: radial-gradient(circle, rgba(143, 5, 1, 0.1) 0%, rgba(143, 5, 1, 0.05) 50%, transparent 100%);
}

/* Service Cards Hover Effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-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);
}

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

/* Ticket Form Styles */
.toolbar-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
}

.toolbar-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.toolbar-btn.active {
    background-color: #C41E3A;
    color: white;
    border-color: #C41E3A;
    box-shadow: 0 2px 4px rgba(196, 30, 58, 0.2);
}

#ticketDescriptionEditor {
    font-family: inherit;
    line-height: 1.6;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
}

#ticketDescriptionEditor:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
    font-style: italic;
    pointer-events: none;
}

#ticketDescriptionEditor:focus:before {
    display: none;
}

#ticketDescriptionEditor ul, #ticketDescriptionEditor ol {
    padding-left: 24px;
    margin: 12px 0;
}

#ticketDescriptionEditor li {
    margin: 6px 0;
    line-height: 1.5;
}

#ticketDescriptionEditor p {
    margin: 8px 0;
}

#ticketDescriptionEditor strong {
    font-weight: 600;
    color: #374151;
}

#ticketDescriptionEditor em {
    font-style: italic;
    color: #6b7280;
}

#ticketDescriptionEditor u {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Ticket form field validation styles */
.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.field-error:focus {
    ring-color: #ef4444 !important;
}

/* Ticket form animations */
.ticket-form-slide-up {
    animation: slideUpFade 0.5s ease-out;
}

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

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #8f0501;
    box-shadow: 0 0 0 3px rgba(143, 5, 1, 0.1);
}

/* Button Hover Effects */
button,
.btn {
    transition: all 0.3s ease;
}

/* Responsive Design Utilities */
@media (max-width: 768px) {
    .hero-pattern {
        background-image: radial-gradient(circle at 50% 50%, rgba(143, 5, 1, 0.05) 0%, transparent 50%);
    }
    
    .gradient-circle {
        display: none;
    }
}

/* Print Styles */
@media print {
    nav,
    footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}
