body {
    font-family: 'IBM Plex Sans', sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    background: #f4f4f4;
}

#templates-container {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

#main-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

#main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

h2 {
    text-align: center;
    color: #075e54;
    margin-bottom: 20px;
    font-weight: bold;
}

#templates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.template-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
    position: relative;
}

.template-title {
    font-weight: bold;
    font-size: 16px;
    color: #128C7E;
    margin-bottom: 10px;
    text-align: center;
}

.whatsapp-container {
    background: url("/static/components/fondo.jpg") repeat;
    background-size: cover;
    padding: 15px;
    border-radius: 10px;
    position: relative;
}

.whatsapp-message {
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: left;
    max-width: 90%;
    margin: auto;
    z-index: 2;
}

.whatsapp-message::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 0px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 0 24px;
    border-color: white transparent transparent transparent;
    border-radius: 10px;
    z-index: 1;
}

.whatsapp-header {
    font-weight: bold;
    font-size: 16px;
    color: #075e54;
    margin-bottom: 5px;
}

.whatsapp-body {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.whatsapp-body strong {
    font-weight: bold;
}

.whatsapp-body em {
    font-style: italic;
}

.whatsapp-body del {
    text-decoration: line-through;
}

.whatsapp-body code {
    font-family: monospace;
    background: #eaeaea;
    padding: 2px 4px;
    border-radius: 4px;
}


.whatsapp-media {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.whatsapp-footer {
    font-size: 12px;
    color: #777;
    text-align: left;
    margin-top: 10px;
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.whatsapp-buttons button {
    background: #25d366;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.whatsapp-buttons button:hover {
    background: #1db954;
}

.template-footer {
    background: white;
    text-align: center;
    font-size: 12px;
    color: #777;
    padding: 5px;
    border-radius: 0 0 10px 10px;
    margin-top: 10px;
}
