/* Fonts */

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/opensans-regular-webfont.eot");
    src:
        url("../fonts/opensans-regular-webfont.eot?#iefix")
            format("embedded-opentype"),
        url("../fonts/opensans-regular-webfont.woff2") format("woff2"),
        url("../fonts/opensans-regular-webfont.woff") format("woff"),
        url("../fonts/opensans-regular-webfont.ttf") format("truetype"),
        url("../fonts/opensans-regular-webfont.svg#open_sansregular")
            format("svg");
    font-weight: normal;
    font-style: normal;
}

/* Global */

html {
    height: 100%;
    overflow-y: auto;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;

    font-family: "Open Sans", Helvetica, Arial, serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #e6e6f3;
    background-color: #121018; /* mocha night deep base */
    -webkit-font-smoothing: antialiased;
}

/* View */

#view {
    height: auto;
    min-height: 100%;
    background: transparent;
}

/* extra small devices */
@media all and (max-width: 768px) {
    /* view margin */
    #view {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* small devices */
@media all and (min-width: 768px) and (max-width: 970px) {
    /* view margin */
    #view {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* medium devices */
@media all and (min-width: 970px) and (max-width: 1170px) {
    /* view margin */
    #view {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* large devices */
@media all and (min-width: 1170px) {
    #view {
        margin-left: 35px;
        margin-right: 35px;
    }
}

/* Header */

header {
    width: 100%;
    padding-top: 24px;
    padding-bottom: 16px;
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        system-ui,
        sans-serif;
    background-color: #121018;
    border-bottom: 1px solid #2b2238;
}

header h1 {
    margin-top: 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #f5e9ff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: none;
}

header a:hover,
header a:visited,
header a:link,
header a:active {
    color: #f5e9ff;
    text-decoration: none;
}

.header-right {
    margin-right: 20px;
}

.header-inner {
    position: relative;
    margin: 0 auto;
}

/* Footer */

footer {
    position: relative;
    width: 100%;
    height: 40px;
    color: #9a8fb8;
    font-family: "Courgette", sans-serif;
    background-color: #121018;
    border-top: 1px solid #2b2238;
}

.col-centered {
    float: none;
    margin: 0 auto;
}

.auth-btn {
    display: inline-block;
    padding: 5px;
}

/* Center login row the same way as Beautiful Blues */
#view > .row[ng-if="!user"] {
    min-height: calc(100vh - 120px); /* header + footer approx */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tile */

.tile {
    background-color: transparent;
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: visible;
    color: #e6e6f3;
}

.tile > .panel-heading {
    background-color: transparent;
    color: #d3cff5;
}

/* Menu */

.menu {
    padding: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #cfd1f0;
}

/* Comments */

.comments {
    display: inline-block;
    word-wrap: break-word;
    padding: 5px 5px 5px 5px;
}

/* Drag and Drop */

#drop-zone {
    padding-top: 18px;
    padding-bottom: 18px;
    text-align: center;
    font-size: 18px;
    transition: 0.25s ease-out;
    border-radius: 6px;
    background-color: transparent;
    color: #e6e6f3;
    border: 1px solid #51436b;
}

.drop-text {
    padding-bottom: 10px;
}

.btn-file {
    width: 220px;
}

.drag-over {
    opacity: 1;
    box-shadow: none;
}

/* File list */

.row-padding {
    padding-left: 15px;
    padding-right: 15px;
}

.file {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 8px 10px;
    border-radius: 0;
    transition:
        background-color 0.15s ease-out,
        transform 0.15s ease-out;
}

.file:hover {
    background-color: #1e1827;
}

.file-flex {
    display: flex;
    align-items: center;
}

.file-pencil-padding {
    padding-right: 10px;
}

.file-name {
    display: inline-block;
    word-break: break-all;
}

.file-name-invalid {
    color: red;
}

.file-status {
    color: #f38ba8;
    font-size: 18px;
    text-shadow: none;
}

/* Link summary */

.link-summary {
    padding: 15px;
    word-break: break-all;
    background-color: transparent;
    border-radius: 6px;
    color: #e6e6f3;
}

/* QRCode */

.qrcode-header {
    text-align: center;
    word-break: break-all;
}

/* Clients */

.client-max-width {
    max-width: 550px;
}

/* Tokens */
.token-speach {
    font-size: 12px;
    font-family: sans-serif;
    color: #9ca3af;
}

/* Dark theme helpers */

a {
    color: #89b4fa;
}

/* Modal overrides for cappuccino theme */

.modal-backdrop {
    background-color: #05040a;
    opacity: 0.85;
}

.modal-content {
    background-color: #181320; /* subtle panel fill so modals stand out */
    border: 1px solid #51436b;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    color: #e6e6f3;
}

.modal-header,
.modal-footer {
    background-color: transparent;
    border: none;
    color: #d3cff5;
}

.modal-title {
    color: #f5e9ff;
}

.modal-body {
    color: #e6e6f3;
}

a:hover,
a:focus {
    color: #cba6f7;
}

.panel,
.panel-default {
    background-color: transparent;
    border-color: transparent;
}

.panel-heading {
    color: #e6e6f3;
}

.panel-body {
    color: #dcdcf5;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid #cba6f7;
    background-color: transparent;
    color: #e6e6f3;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #cba6f7;
    color: #141320;
}

input,
textarea,
select {
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid #2b2238;
    color: #e6e6f3;
    box-shadow: none;
}

input::placeholder,
textarea::placeholder {
    color: #6c7086;
}

/* Align file action buttons in a consistent horizontal group */
.file-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.file-actions .btn-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: 260px;
    justify-content: flex-end;
}

/* Modern button/icon tweaks */

.btn-lg {
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 999px;
    font-size: 15px;
}

.btn-block {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

/* Base button style */
.btn,
.btn-default,
.btn-success,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border-width: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* Compact pill style for small action buttons */
.btn-sm {
    padding: 4px 10px;
    border-radius: 0;
    font-size: 12px;
}

/* Segmented-style actions: Download | Copy | QR | Delete */
.file-actions .btn-group .btn {
    border-radius: 0;
}

/* First visible button in the group (Download, even if wrapped in &lt;a&gt;) */
.file-actions .btn-group .btn:first-of-type {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
}

/* Last visible button in the group (Delete) */
.file-actions .btn-group .btn:last-of-type {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
}

/* Subtle separators between middle segmented buttons */
.file-actions .btn-group .btn + .btn {
    border-left: 1px solid rgba(0, 0, 0, 0.25);
}

/* Success (download / copy / QR) */
.btn-success {
    background-color: transparent;
    border: 1px solid #a6e3a1;
    color: #e6e6f3;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #a6e3a1;
    color: #11111b;
}

/* Danger (delete) */
.btn-danger {
    background: transparent;
    color: #f38ba8;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #f38ba8;
    color: #11111b;
}

/* Icon sizing and spacing inside buttons */

.btn i.fa,
.btn span.glyphicon {
    font-size: 14px;
    vertical-align: middle;
}

.btn i.fa + span,
.btn span.glyphicon + span,
.btn i.fa + span.hidden-xs,
.btn span.glyphicon + span.hidden-xs {
    margin-left: 6px;
}
