* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir,helvetica, "helvetica neue", ubuntu, roboto, noto, "segoe ui", arial,sans-serif;
}

body {
    min-height: 100vh;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 14px;
}

.container {
    background: white;
    border-radius: 12px;
    /*box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);*/
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    width: 100%;
    max-width: 700px;
    overflow: hidden;
}

.toolbar {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    gap: 8px;
}

.window-controls {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.window-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background-color: #ff605c; }
.minimize { background-color: #ffbd44; }
.maximize { background-color: #00ca4e; }

.toolbar-actions {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.toolbar-button {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #e0e0e0;
    border: none;
}

.form-container {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.form-group label {
    width: 30px;
    color: #666;
    font-size: 14px;
}

.subject {
    width: 60px!important;
    font-size: 14px;
}

.input-container {
    flex-grow: 1;
    position: relative;
}

input, textarea {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    background: #ffffff;
}

input:focus, textarea:focus {
    outline: none;
    /*border-color: #007AFF;*/
    border: none;
}

.from-field {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.from-label {
    color: #666;
    font-size: 14px;
    margin-right: 8px;
}

.from-value {
    color: #333;
    font-size: 14px;
}

textarea {
    min-height: 300px;
    resize: vertical;
    resize: none;
    padding: 12px 0;
    font-size: 14px;
}
textarea::placeholder {
    color: #aaa;
    line-height: 1.6;
    font-size: 14px;
}

.result {
    margin: 20px 0;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

/*.copy-btn {
    background: #007AFF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    
}*/

.copy-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  border-radius: 6px;
  border: none;
  font-size: 14px;

  color: #fff;
  background: linear-gradient(180deg, #4B91F7 0%, #367AF6 100%);
   background-origin: border-box;
  box-shadow: 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.copy-button:focus {
  box-shadow: inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2), 0px 0.5px 1.5px rgba(54, 122, 246, 0.25), 0px 0px 0px 3.5px rgba(58, 108, 217, 0.5);
  outline: 0;
}

.copy-button:hover {
    background: #0056b3;
    cursor: pointer;
}

.mailto-link {
    word-break: break-all;
    margin-right: 10px;
    font-family: monospace;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    font-size: 14px;
}