* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d1b2a;
    color: #e0e1dd;
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(28, 58, 92, 0.8) 0%, rgba(13, 27, 42, 0.9) 90%),
        radial-gradient(circle at 90% 80%, rgba(41, 67, 99, 0.6) 0%, transparent 60%);
    position: relative;
    overflow-x: hidden;
}

/* Animasi tetes hujan di latar belakang */
.rain-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(100, 150, 200, 0.6));
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header styling */
.header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #415a77;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 2.8rem;
    color: #778da9;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        color: #778da9;
    }
    100% {
        transform: scale(1.1);
        color: #9bb1d6;
    }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 300;
    background: linear-gradient(to right, #e0e1dd, #b8c0d1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.1rem;
    color: #a3b5cc;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

/* Form styling */
.curhat-form {
    background-color: rgba(26, 40, 59, 0.7);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #415a77;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.curhat-form:hover {
    transform: translateY(-5px);
}

.curhat-form h2, .my-curhats h2, .public-curhats h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #e0e1dd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 20px;
    background-color: rgba(16, 29, 46, 0.8);
    border: 1px solid #415a77;
    border-radius: 8px;
    color: #e0e1dd;
    font-size: 1rem;
    resize: vertical;
    transition: border 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #778da9;
    box-shadow: 0 0 0 2px rgba(119, 141, 169, 0.3);
}

.char-count {
    text-align: right;
    font-size: 0.9rem;
    color: #a3b5cc;
    margin-top: 5px;
}

select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(16, 29, 46, 0.8);
    border: 1px solid #415a77;
    border-radius: 8px;
    color: #e0e1dd;
    font-size: 1rem;
    margin-top: 8px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #415a77, #778da9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: linear-gradient(to right, #4a6488, #8aa0c5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-note {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(65, 90, 119, 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #a3b5cc;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Curhat list styling */
.my-curhats, .public-curhats {
    background-color: rgba(26, 40, 59, 0.7);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #415a77;
}

.filter {
    margin-bottom: 20px;
}

.curhats-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.curhat-item {
    background-color: rgba(16, 29, 46, 0.8);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #415a77;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.curhat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-left-color: #778da9;
}

.curhat-item.personal {
    border-left-color: #9d4edd;
}

.curhat-content {
    margin-bottom: 15px;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.curhat-content:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(16, 29, 46, 0.9));
}

.curhat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #a3b5cc;
}

.mood-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: rgba(65, 90, 119, 0.4);
    border-radius: 20px;
    font-size: 0.9rem;
}

.curhat-date {
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #778da9;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

/* Footer styling */
.footer {
    background-color: rgba(16, 29, 46, 0.9);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    border-top: 1px solid #415a77;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #e0e1dd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info p {
    margin-bottom: 15px;
    color: #a3b5cc;
    max-width: 600px;
}

.disclaimer {
    background-color: rgba(119, 29, 29, 0.2);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #9d2e2e;
}

.footer-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat span {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: #778da9;
    margin-bottom: 5px;
}

.stat p {
    color: #a3b5cc;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #415a77;
    color: #778da9;
    font-size: 0.9rem;
}

.footer-bottom i {
    color: #9d2e2e;
    margin: 0 5px;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #1a283b;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    border: 1px solid #415a77;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #a3b5cc;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #e0e1dd;
}

.modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #415a77;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 25px 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-date {
    color: #a3b5cc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #415a77;
    text-align: right;
}

.btn-delete {
    padding: 12px 25px;
    background-color: rgba(157, 46, 46, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-delete:hover {
    background-color: rgba(180, 60, 60, 0.9);
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 25px 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .curhat-form, .my-curhats, .public-curhats, .footer {
        padding: 20px;
    }
    
    .curhats-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-stats {
        justify-content: space-around;
    }
    
    .stat span {
        font-size: 1.8rem;
    }
}